1
0
-1

There are several attributes that we'd like to change using JDF for different pages of a job consisting of a single PDF file. The PDF originated as a PostScript file. In PostScript, setpagedevice can be used to set MediaType, MediaColor, MediaWeight, Duplex, etc. on a page-by-page basis. We have this PostScript media/plex information embedded in the PDF file using a proprietary format, and what we'd like to do is set up a JDF file that incorporates this media/plex information. I can see how to set these attributes up for the entire PDF file, using:

  • ResourcePool/Media/@MediaType
  • ResourcePool/Media/@MediaColorName
  • ResourcePool/Media/@Weight
  • ResourcePool/LayoutPreparationParams/@Sides

But how can I set these to different values for different pages of the PDF job? They might change a few times throughout the job. For example, pages 1-10 might be simplex, and pages 11-16 might be duplex. Pages 1-5 might be MediaColorName White, pages 6-10 might be Blue, and pages 11-16 might be White. In the most extreme case, these attributes could change for every single page of the job.


Thanks,

Dylan Miller

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Here is an example of my attempt to understand how to set MediaType, Duplex, etc. for different pages. I varied the combinations of attributes on different pages in order to understand the different ways that the attributes need to be represented in JDF for LayoutPreparationParams and DigitalPrintingParams. This example has the following attribute settings on different pages:

      Pages 1-2: LocationName=Tray-1, MediaType=Paper, MediaColor=Yellow, Weight=30, Sides=TwoSidedFlipY
      Pages 3-4: LocationName=Tray-0, MediaType=Paper, MediaColor=White, Weight=30, Sides=TwoSidedFlipY
      Page 5: LocationName=Tray-0, MediaType=Paper, MediaColor=White, Weight=30, Sides=OneSidedFront
      Page 6: LocationName=Tray-1, MediaType=Paper, MediaColor=Yellow, Weight=30, Sides=OneSidedFront
      Page 7: LocationName=Tray-1, MediaType=Paper, MediaColor=Yellow, Weight=30, Sides=OneSidedFront
      Pages 8-9: LocationName=Tray-1, MediaType=Paper, MediaColor=Yellow, Weight=30, Sides=TwoSidedFlipY

      Please let me know if this example is correct in regards to changing these attributes for different pages. Thanks!

      <JDF Category="IDP.DigitalPrinting" DescriptiveName="MyAgent-637036510927595220" ID="ID-b5aa0e7c-af60-480a-82dc-bac3bbb83cc3" JobID="MyAgent-90f4fd9e-f329-426c-9130-5b9ae0c4b053" JobPartID="MyAgent-90f4fd9e-f329-426c-9130-5b9ae0c4b053-01" Status="Waiting" Type="Combined" Types="LayoutPreparation Imposition Interpreting Rendering Screening DigitalPrinting" Version="1.4" xmlns="http://www.CIP4.org/JDFSchema_1_1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <AuditPool>
          <Created AgentName="MyAgent" AgentVersion="v2.2" TimeStamp="2019-09-09T18:38:12.7864476-07:00" />
        </AuditPool>
        <Comment Name="Instruction">
          This is a test comment.
        </Comment>
        <ResourceLinkPool>
          <LayoutPreparationParamsLink CombinedProcessIndex="0" Usage="Input" rRef="IDLayoutPreparationParams" />
          <NodeInfoLink CombinedProcessIndex="0" Usage="Input" rRef="IDNodeInfo" />
          <RunListLink CombinedProcessIndex="0" Usage="Input" rRef="IDRunList" />
          <InterpretingParamsLink CombinedProcessIndex="2" Usage="Input" rRef="IDInterpretingParams" />
          <RenderingParamsLink CombinedProcessIndex="3" Usage="Input" rRef="IDRenderingParams" />
          <ScreeningParamsLink CombinedProcessIndex="4" Usage="Input" rRef="IDScreeningParams" />
          <ColorantControlLink CombinedProcessIndex="5" Usage="Input" rRef="IDColorantControl" />
          <DigitalPrintingParamsLink CombinedProcessIndex="5" Usage="Input" rRef="IDDigitalPrintingParams" />
          <ComponentLink CombinedProcessIndex="5" Usage="Input" rRef="IDComponentInput" />
          <ComponentLink CombinedProcessIndex="5" Amount="1" Usage="Output" rRef="IDComponentOutput" />
        </ResourceLinkPool>
        <ResourcePool>
          <Media Class="Consumable" ID="ID-ca81ff90-6b0d-4611-9d23-26e4ee7c6745" MediaColorName="Yellow" MediaType="Paper" Weight="30" Status="Available">
            <Location LocationName="Tray-1" />
          </Media>
          <Media Class="Consumable" ID="ID-c65a5420-0482-4fd0-a9e7-685b8845bf84" MediaColorName="White" MediaType="Paper" Weight="30" Status="Available">
            <Location LocationName="Tray-0" />
          </Media>
          <LayoutPreparationParams Class="Parameter" ID="IDLayoutPreparationParams" PartIDKeys="RunIndex" Status="Available">
            <LayoutPreparationParams RunIndex="0 ~ 1 7 ~ 8" Sides="TwoSidedFlipY">
              <MediaRef rRef="ID-ca81ff90-6b0d-4611-9d23-26e4ee7c6745" />
            </LayoutPreparationParams>
            <LayoutPreparationParams RunIndex="2 ~ 3" Sides="TwoSidedFlipY">
              <MediaRef rRef="ID-c65a5420-0482-4fd0-a9e7-685b8845bf84" />
            </LayoutPreparationParams>
            <LayoutPreparationParams RunIndex="4" Sides="OneSidedFront">
              <MediaRef rRef="ID-c65a5420-0482-4fd0-a9e7-685b8845bf84" />
            </LayoutPreparationParams>
            <LayoutPreparationParams RunIndex="5 ~ 6" Sides="OneSidedFront">
              <MediaRef rRef="ID-ca81ff90-6b0d-4611-9d23-26e4ee7c6745" />
            </LayoutPreparationParams>
          </LayoutPreparationParams>
          <NodeInfo Class="Parameter" End="2019-09-09T18:38:12.7635441-07:00" ID="IDNodeInfo" Status="Available" />
          <RunList Class="Parameter" ID="IDRunList" PartIDKeys="Run" Status="Available">
            <RunList Pages="0 ~ -1" Run="1">
              <LayoutElement>
                <FileSpec MimeType="application/pdf" URL="cid:ID-7a4acddf-a390-43b7-a67c-4f9de35de6a3" UserFileName="pagedevice_keys_test_2.00.ps.pdf" />
              </LayoutElement>
            </RunList>
          </RunList>
          <InterpretingParams Class="Parameter" ID="IDInterpretingParams" Status="Available" />
          <RenderingParams Class="Parameter" ID="IDRenderingParams" Status="Available" />
          <ScreeningParams Class="Parameter" ID="IDScreeningParams" Status="Available" />
          <ColorantControl Class="Parameter" ID="IDColorantControl" Status="Available" />
          <DigitalPrintingParams Class="Parameter" ID="IDDigitalPrintingParams" PartIDKeys="RunIndex" Status="Available">
            <DigitalPrintingParams RunIndex="0 ~ 1 5 ~ 8">
              <MediaRef rRef="ID-ca81ff90-6b0d-4611-9d23-26e4ee7c6745" />
            </DigitalPrintingParams>
            <DigitalPrintingParams RunIndex="2 ~ 4">
              <MediaRef rRef="ID-c65a5420-0482-4fd0-a9e7-685b8845bf84" />
            </DigitalPrintingParams>
          </DigitalPrintingParams>
          <Component Class="Quantity" ComponentType="PartialProduct" ID="IDComponentInput" Status="Available" />
          <Component Class="Quantity" ComponentType="FinalProduct" ID="IDComponentOutput" Status="Available" />
        </ResourcePool>
      </JDF>
        CommentAdd your comment...