Print Page | Close Window

PDF to Image: letters move in eachother

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2478
Printed Date: 25 Jun 25 at 11:55AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: PDF to Image: letters move in eachother
Posted By: frugal
Subject: PDF to Image: letters move in eachother
Date Posted: 19 Dec 12 at 4:30PM
Quick PDF has a feature to convert a PDF into an Image:

iNumPages := PDFLibrary.PageCount();
PDFLibrary.RenderDocumentToFile(300, 0, iNumPages, 0, 'H:\temp\quickpdf_testimage_6_new.bmp');

If this feature is executed the letters move (with some PDF sources) in each other. In the following there is a PDF and the resulting JPG:

http://imgur.com/lQlPZ,qvqw0

PDF: http://www.baunetz.de/aip/2001/tunnel.pdf

No there is a problem: in the resulting Image the Letters move in eachother.



Replies:
Posted By: AndrewC
Date Posted: 20 Dec 12 at 7:26AM

This PDF contains a font (OfficinaSans-Book) that is not embedded in the PDF so Quick PDF substitutes Arial instead which has thicker characters.

This is a common problem with PDF's and many PDF viewers.  The best solution is to create the PDF with embedded fonts for any of the non standard fonts that are used in the PDF.


Posted By: frugal
Date Posted: 20 Dec 12 at 7:52AM
Thx for the info.


Posted By: frugal
Date Posted: 20 Dec 12 at 10:13AM
"This PDF contains a font (OfficinaSans-Book) that is not embedded in the PDF so Quick PDF substitutes Arial instead which has thicker characters."

Is there the possibilty to embed this OfficinaSans-Book into the pdf engine and force the QuickPDF to run PDFLibrary.RenderDocumentToFile with this specific font?




Posted By: Ingo
Date Posted: 20 Dec 12 at 7:48PM
Hi!

Yes. Try AddTrueTypeFontFromFile
or AddTrueTypeFont:
http://www.quickpdflibrary.com/help/quickpdf/AddTrueTypeFontFromFile.php

Cheers, Ingo


Posted By: frugal
Date Posted: 14 Jan 13 at 9:59AM
Thx for your answer. With AddTrueTypeFont it didn't work.
It didn't use the font that i added even if i used the SelectFont command.
The result was always the same. Also the ReplaceFonts command didn't work.

I also found out that adobe / foxit use multimaster fonts if they don't find a font on the system. Do you have similar features (planed) in Quickpdf?

Edit:
I have found the following in the FAQ:
'No, it's not currently possible to change the font that a text object uses. The problem with changing the font that a particular text object uses is that in changing the font the height and width of the characters that use that font also change and can mess up the layout of the document.'
http://www.quickpdflibrary.com/faq/is-it-possible-to-change-font-for-existing-pdf-file.php


Posted By: AndrewC
Date Posted: 07 Mar 13 at 10:11AM
It would be easier just to install the font into Windows and the the PDF would render correctly.

Andrew.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk