Replies: 1 comment 1 reply
-
Hi @smurfix Sure, you could do it like that: from fpdf import FPDF, ViewerPreferences
from fpdf.syntax import Name
pdf = FPDF()
pdf.add_page()
pdf.set_font("Helvetica", size=12)
pdf.cell(text="Hello world!")
pdf.viewer_preferences = ViewerPreferences()
pdf.viewer_preferences.print_scaling = Name("None")
pdf.output("issue_1378.pdf") However we should document There is the definition of this parameter from the spec:
|
Beta Was this translation helpful? Give feedback.
-
FPDF (the PHP version) comes with a label printing example here that includes this piece of code:
How would I do this in Python? Or maybe add this option to the
ViewerPreferences
class?Beta Was this translation helpful? Give feedback.
All reactions