dominick-peluso / php-jdf-library
PHP的JDF/JMF库
dev-master
2016-06-07 22:07 UTC
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2024-09-28 16:25:16 UTC
README
本库旨在收集PHP类,可用于创建、解释和发送JDF和JMF文件,主要针对HP的实施方案。JDF规范非常广泛,因此目前我主要将开发精力集中在HP Indigos和HP数字前端(DFE)使用的JDF上。
如何使用
查看JMF-Subscription: https://github.com/dominickp/JMF-Subscription
示例输出(截至2/15)
<?xml version="1.0" encoding="UTF-8"?> <JDF xmlns="http://www.CIP4.org/JDFSchema_1_1" Type="Combined" ID="rootNodeId" Status="Waiting" JobPartID="000.cdp.797" Version="1.3" Types="DigitalPrinting" DescriptiveName="MyTestJDF"> <AuditPool> <Created AgentName="PHP-JDF-LIbrary" TimeStamp="2014-02-15 23:22:13"/> </AuditPool> <ResourcePool> <DigitalPrintingParams Class="Parameter" ID="DPP001" Status="Available"> <MediaRef rRef="M001"/> </DigitalPrintingParams> <Component Class="Quantity" ID="Component" Status="Unavailable" ComponentType="FinalProduct"/> <Media Class="Consumable" ID="M001" Status="Available" DescriptiveName="Substrate Name 1"/> <RunList ID="RunList_1" Status="Available" Class="Parameter"> <LayoutElement> <FileSpec MimeType="image/jpeg" URL="FILE://hppro01-sm1/Jobs/example_image.jpg"/> </LayoutElement> </RunList> <Device Class="Implementation" ID="D001" Status="Available"> <GeneralID IDUsage="QueueDestination" IDValue="Held"/> </Device> <LayoutPreparationParams Class="Parameter" ID="LPP001" Status="Available" Sides="TwoSidedFlipY"> <ExternalImpositionTemplate> <FileSpec URL="urn:8_up_postcards"/> </ExternalImpositionTemplate> </LayoutPreparationParams> <GatheringParams Class="Parameter" ID="GP001" Status="Available"> <Disjointing Number="1"> <InsertSheet SheetType="SeparatorSheet" SheetUsage="Trailer"/> </Disjointing> </GatheringParams> </ResourcePool> <ResourceLinkPool> <DigitalPrintingParamsLink rRef="DPP001" Usage="Input"/> <ComponentLink rRef="Component" Usage="Output" Amount="100"/> <MediaLink rRef="M001" Usage="Input"/> <RunListLink rRef="RunList_1" Usage="Input"/> <DeviceLink rRef="D001" Usage="Input"/> <LayoutPreparationParamsLink rRef="LPP001" Usage="Input"/> <GatheringParamsLink rRef="GP001" Usage="Input"/> </ResourceLinkPool> <Comment Name="GeneralComments">Test comment</Comment> <CustomerInfo BillingCode="MyJobNumber" CustomerID="MyCustomer"/> </JDF>
待办事项
- 使用表单设置更好的示例
- 更多关于HP实施方案特定值的研究和对错误输入值的错误处理
JDF规范
我使用以下链接作为参考: http://www.cip4.org/documents/jdf_specifications/html/Structure_of_JDF_Nodes.html