@@ -91,76 +91,76 @@ pub struct Chrome {
9191 pub pdf_landscape : bool ,
9292 #[ env_config(
9393 name = "ZO_PDF_DISPLAY_HEADER_FOOTER" ,
94- default = false ,
95- help = "Display header and footer in the PDF"
94+ default = "" ,
95+ help = "Display header and footer in the PDF. Set to 'true' or 'false'. When empty, uses browser default "
9696 ) ]
97- pub pdf_display_header_footer : bool ,
97+ pub pdf_display_header_footer : String ,
9898 #[ env_config(
9999 name = "ZO_PDF_PRINT_BACKGROUND" ,
100- default = false ,
101- help = "Print background graphics in the PDF"
100+ default = "" ,
101+ help = "Print background graphics in the PDF. Set to 'true' or 'false'. When empty, uses browser default "
102102 ) ]
103- pub pdf_print_background : bool ,
103+ pub pdf_print_background : String ,
104104 #[ env_config(
105105 name = "ZO_PDF_SCALE" ,
106- default = 1.0 ,
107- help = "Scale of the webpage rendering. Default is 1.0"
106+ default = "" ,
107+ help = "Scale of the webpage rendering (e.g., 1.0 for 100%). When empty, uses browser default "
108108 ) ]
109- pub pdf_scale : f64 ,
109+ pub pdf_scale : String ,
110110 #[ env_config(
111111 name = "ZO_PDF_PAPER_WIDTH" ,
112- default = 8.5 ,
113- help = "Paper width in inches. Default is 8.5 inches ( US Letter)"
112+ default = "" ,
113+ help = "Paper width in inches (e.g., 8.5 for US Letter). When empty, uses browser default "
114114 ) ]
115- pub pdf_paper_width : f64 ,
115+ pub pdf_paper_width : String ,
116116 #[ env_config(
117117 name = "ZO_PDF_PAPER_HEIGHT" ,
118- default = 11.0 ,
119- help = "Paper height in inches. Default is 11 inches ( US Letter)"
118+ default = "" ,
119+ help = "Paper height in inches (e.g., 11.0 for US Letter). When empty, uses browser default "
120120 ) ]
121- pub pdf_paper_height : f64 ,
121+ pub pdf_paper_height : String ,
122122 #[ env_config(
123123 name = "ZO_PDF_MARGIN_TOP" ,
124- default = 0.4 ,
125- help = "Top margin in inches. Default is 0.4 inches (~1cm) "
124+ default = "" ,
125+ help = "Top margin in inches. When empty, uses browser default "
126126 ) ]
127- pub pdf_margin_top : f64 ,
127+ pub pdf_margin_top : String ,
128128 #[ env_config(
129129 name = "ZO_PDF_MARGIN_BOTTOM" ,
130- default = 0.4 ,
131- help = "Bottom margin in inches. Default is 0.4 inches (~1cm) "
130+ default = "" ,
131+ help = "Bottom margin in inches. When empty, uses browser default "
132132 ) ]
133- pub pdf_margin_bottom : f64 ,
133+ pub pdf_margin_bottom : String ,
134134 #[ env_config(
135135 name = "ZO_PDF_MARGIN_LEFT" ,
136- default = 0.4 ,
137- help = "Left margin in inches. Default is 0.4 inches (~1cm) "
136+ default = "" ,
137+ help = "Left margin in inches. When empty, uses browser default "
138138 ) ]
139- pub pdf_margin_left : f64 ,
139+ pub pdf_margin_left : String ,
140140 #[ env_config(
141141 name = "ZO_PDF_MARGIN_RIGHT" ,
142- default = 0.4 ,
143- help = "Right margin in inches. Default is 0.4 inches (~1cm) "
142+ default = "" ,
143+ help = "Right margin in inches. When empty, uses browser default "
144144 ) ]
145- pub pdf_margin_right : f64 ,
145+ pub pdf_margin_right : String ,
146146 #[ env_config(
147147 name = "ZO_PDF_PREFER_CSS_PAGE_SIZE" ,
148- default = false ,
149- help = "Prefer page size as defined by CSS. If false, content will be scaled to fit paper size "
148+ default = "" ,
149+ help = "Prefer page size as defined by CSS. Set to 'true' or 'false'. When empty, uses browser default "
150150 ) ]
151- pub pdf_prefer_css_page_size : bool ,
151+ pub pdf_prefer_css_page_size : String ,
152152 #[ env_config(
153153 name = "ZO_PDF_GENERATE_TAGGED_PDF" ,
154- default = false ,
155- help = "Generate tagged (accessible) PDF for screen readers and assistive technologies "
154+ default = "" ,
155+ help = "Generate tagged (accessible) PDF for screen readers. Set to 'true' or 'false'. When empty, uses browser default "
156156 ) ]
157- pub pdf_generate_tagged_pdf : bool ,
157+ pub pdf_generate_tagged_pdf : String ,
158158 #[ env_config(
159159 name = "ZO_PDF_GENERATE_DOCUMENT_OUTLINE" ,
160- default = false ,
161- help = "Embed the document outline into the PDF for navigation "
160+ default = "" ,
161+ help = "Embed the document outline into the PDF. Set to 'true' or 'false'. When empty, uses browser default "
162162 ) ]
163- pub pdf_generate_document_outline : bool ,
163+ pub pdf_generate_document_outline : String ,
164164}
165165
166166#[ derive( EnvConfig ) ]
0 commit comments