Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small contents in PDF for macOS #42

Closed
kuthreecar opened this issue Jul 19, 2018 · 6 comments
Closed

Small contents in PDF for macOS #42

kuthreecar opened this issue Jul 19, 2018 · 6 comments

Comments

@kuthreecar
Copy link

I am using DinkToPdf to convert my html to pdf and got a great result in windows.
But in macOS I am facing a problem: I put html file and the pdf that it produced became very small on A4 size paper.
I was testing on different websites and it had similar result. Like the following picture
a1
Any advise for me to fix the problems?

@rdvojmoc
Copy link
Owner

There were some problems with sizes on MacOS. Please see this issue. You could try setting DPI property of GlobalSettings to ~380dpi or something in close to it.

@kuthreecar
Copy link
Author

Thanks, I already fixed it easily

@rdvojmoc
Copy link
Owner

Can you share how you fixed it? For future users that will have the same issue.

@kuthreecar
Copy link
Author

As you said previously just need to adjust DPI in Global Setting, following is a part of my setting

GlobalSettings = {
ColorMode = DinkToPdf.ColorMode.Color,
Orientation = Orientation.Portrait,
PaperSize = PaperKind.A4,
Margins = new MarginSettings() { Top = 10 },
DPI = 380,
Out = Path.Combine(reportDirectory, filename + ".pdf")
},

@rdvojmoc
Copy link
Owner

Greate, thanks.

@QuintonC
Copy link

QuintonC commented Dec 4, 2018

Still an active issue. Thanks for the solution @kuthreecar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants