Set PDF to print with no scaling

后端 未结 7 1272
名媛妹妹
名媛妹妹 2020-12-17 18:35

I am generating a PDF (using fpdf) and I am wondering if there is a way to set the document\'s properties to to default to print with no scaling.

So when you select

7条回答
  •  醉梦人生
    2020-12-17 19:09

    Print-scaling can be turned off for invividual PDF files using Adobe Acrobat, by going to File -> Preferences -> Advanced -> Page scaling. (You can try this using the trial version of Acrobat.)

    As for achieving this in code, I've tried and failed to make it work, but the critical difference in the files seems to be:

    10 0 obj
    <>>>
    endobj
    

    for non-scaling PDFs, compared to

    10 0 obj
    <>
    endobj
    

    for those that use the default shrink-to-fit option.

提交回复
热议问题