[Python] Integrating Print Settings into a PDF

Discussão em 'Python' iniciado por Stack, Fevereiro 12, 2025.

  1. Stack

    Stack Membro Participativo

    How can I embed information in a PDF so that the printer knows which tray to use for the paper? There used to be an old tool that unfortunately no longer works for us. It inserted such containers, though I’m not sure if they were directly related to this. Unfortunately, I can't find anything online, and AI doesn’t seem to fully understand me either.

    Here are the container

    I tried reading these containers with Python or opening the PDF in an editor to understand what’s inside, but I haven’t had much success. Unfortunately, I can't find anything online, and AI doesn’t seem to fully understand me either.

    endstream
    endobj
    5280 0 obj
    <</Subtype/Form/Length 17/PieceInfo 5282 0 R/Resources 5281 0 R/BBox[0 0 0 0]/LastModified(D:20250108135951+01'00')>>stream
    %ODL-XObj_Content
    endstream
    endobj
    5282 0 obj
    <</OCED_ODL_PAGE 5283 0 R>>
    endobj
    5283 0 obj
    <</Private 5284 0 R/LastModified(D:20250108140007+01'00')>>
    endobj
    5284 0 obj
    <</OCED_ODL_PAGE_ID(0 6 0 c e 8 f 2 - c d c 2 - 4 a 8 e - a 7 3 c - 3 9 3 f 1 9 9 4 3 0 9 e )/OCED_ODL_DATA 4892 0 R>>
    endobj
    5285 0 obj
    <</OCED_ODL_XOBJ 5280 0 R>>
    endobj
    5286 0 obj
    <</Length 63>>stream
    /OCED_ODL_DATA_TAG BMC /OCED_ODL_XOBJ Do EMC %PageProgramData

    endstream
    endobj
    5287 0 obj
    <</Subtype/Form/Length 17/PieceInfo 5289 0 R/Resources 5288 0 R/BBox[0 0 0 0]/LastModified(D:20250108135951+01'00')>>stream
    %ODL-XObj_Content
    endstream
    endobj
    5289 0 obj
    <</OCED_ODL_PAGE 5290 0 R>>
    endobj
    5290 0 obj
    <</Private 5291 0 R/LastModified(D:20250108140007+01'00')>>
    endobj
    5291 0 obj
    <</OCED_ODL_PAGE_ID(2 c 6 f 0 b 7 f - 7 a 1 a - 4 0 e a - 8 6 9 9 - 0 c 5 e 4 f 3 2 5 2 e d )/OCED_ODL_DATA 4892 0 R>>
    endobj
    5292 0 obj
    <</Length 63>>stream
    /OCED_ODL_DATA_TAG BMC /OCED_ODL_XOBJ Do EMC %PageProgramData

    Continue reading...

Compartilhe esta Página