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

Unwanted scale factor when rendering pages #35

Open
MartinBell opened this issue Jan 20, 2016 · 0 comments
Open

Unwanted scale factor when rendering pages #35

MartinBell opened this issue Jan 20, 2016 · 0 comments

Comments

@MartinBell
Copy link

Hello.

Ive been trying to use the library to create a pdf from a simple html with a fixed pixel size. However the resulting page is always 80% smaller than it should be. Changing the viewport meta tag does not seem to make any difference. The page should fill the screen with kPaperSizeLetter. Ive pasted the code,html and resulting pdf. Am I missing something?

Thank you. Any help much appreciated.

delegateDemo.pdf

self.PDFCreator = [NDHTMLtoPDF createPDFWithURL:[NSURL fileURLWithPath:srcPath]
pathForPDF:[@"~/Documents/delegateDemo.pdf" stringByExpandingTildeInPath]
delegate:self
pageSize:kPaperSizeLetter
margins:UIEdgeInsetsMake(0, 0, 0, 0)];

Test2.txt

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

1 participant