You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wisepdf has worked great for us but I have a font issue and I'm not sure if I have something misconfigured or this is a bug but here goes:
We have embedded ckeditor in a client app for generating templates. The html produced from the ckeditor is merged with data and then put through wisepdf and sent to the browser in a controller.
But the font within the generated PDF output is always Liberation; regardless what was specified inside ckeditor (and ultimately embedded in the inline html.)
Ckeditor includes a content.css file with a font-size: 12px within the body tag so I was at least expecting my PDF font sizes to be the same but they are always a non integer and usually 12.28.
Html tags with a specific font and font size assigned to them also output Liberation with a non integer font size.
Here is a sample of how ckeditor embeds font style and font size:
<p><spanstyle="font-family:times new roman,times,serif;"><spanstyle="font-size: 12px;">
Times New Roman
</span></span></p>
Should I expect wisepdf to embed the above with Times New Roman with a 12px font size? I'm analysing the PDF output using Acrobat.
My wisepdf gem version is 1.3.1. Here is my wisepdf controller set up:
Hello Igor,
wisepdf has worked great for us but I have a font issue and I'm not sure if I have something misconfigured or this is a bug but here goes:
We have embedded ckeditor in a client app for generating templates. The html produced from the ckeditor is merged with data and then put through wisepdf and sent to the browser in a controller.
But the font within the generated PDF output is always Liberation; regardless what was specified inside ckeditor (and ultimately embedded in the inline html.)
Ckeditor includes a content.css file with a font-size: 12px within the body tag so I was at least expecting my PDF font sizes to be the same but they are always a non integer and usually 12.28.
Html tags with a specific font and font size assigned to them also output Liberation with a non integer font size.
Here is a sample of how ckeditor embeds font style and font size:
Should I expect wisepdf to embed the above with Times New Roman with a 12px font size? I'm analysing the PDF output using Acrobat.
My wisepdf gem version is 1.3.1. Here is my wisepdf controller set up:
Sorry for the long winded question. ;)
Thanks,
Joe
The text was updated successfully, but these errors were encountered: