Quantcast
Channel: Adobe Community : All Content - Creating PDFs
Viewing all articles
Browse latest Browse all 23252

PDF from html

$
0
0

I have a large volume of html (currently PDF'ing to around 250 pages) that is generated dynamically.

 

My question is a simple one but it's driving me to distraction.

 

How can I control the formtting in the resulting PDF. I'm not asking for anything complex here. I want 12pt body text and everything else relative sized based on em size.

 

I've tried setting font-size:12pt in body and in a content wrapper div. I've tried it in embedded style sheets and in style attributes.

 

I've tried create from html in Acrobat 11 pro, print to pdf, save as pdf in chrome and webkit html2pdf on the server. in each case the font is resized to whatever Acrobat thinks is the best fit.

 

So, yesterday my output was at 11.5pt today it's 12.5 although both are rendered identically on screen and firebug and chrome dev tools both show the text to be set to 12pt prior to output.

 

I suspect that the culprit here are images and that acrobat 'for my convenience' is automagically resizing to get what it thinks (wrongly) is best fit

 

Any ideas?


Viewing all articles
Browse latest Browse all 23252

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>