|
Rank: Newbie Groups: Member
Joined: 12/12/2023 Posts: 6
|
Hello, Encountering the following error once i set ZoomLevel property to 0.081f https://ibb.co/8XtZGtK error https://ibb.co/WgmQBy6 - properties set Had to start using ZoomLevel to mimic pdf rendering locally as it would on cloud env. After it is set, even tho the exception occurs the pdf is generated but it is extremely small https://ibb.co/SXZ9FdG
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
This is exactly what ZoomLevel is designed to do. When you set it to a small value, then the content of the PDF (such as text and images) will be small. In short EO.Pdf is doing what you tell it to do. Why do you want to set ZoomLevel to such a small value? And what is the expected result?
|
|
Rank: Newbie Groups: Member
Joined: 12/12/2023 Posts: 6
|
Isn't default ZoomLevel = 0? So increasing it a bit will increase the zoom of the page?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
The default value 0 is NOT a valid zoom level. It means the converter will automatically pick a zoom level. An actual zoom level when set (when not zero) is a multiplier of the actual size. So for example, if you want the text to be half of its original size, you set ZoomLevel to 0.5. See here for more details: https://www.essentialobjects.com/doc/eo.pdf.htmltopdfoptions.zoomlevel.html
|
|
Rank: Newbie Groups: Member
Joined: 12/12/2023 Posts: 6
|
Thanks for the clarification.
|
|