Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - PDF to Image: letters move in eachother
  FAQ FAQ  Forum Search   Register Register  Login Login

PDF to Image: letters move in eachother

 Post Reply Post Reply
Author
Message
frugal View Drop Down
Beginner
Beginner


Joined: 19 Dec 12
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote frugal Quote  Post ReplyReply Direct Link To This Post Topic: PDF to Image: letters move in eachother
    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.

Edited by frugal - 19 Dec 12 at 4:33PM
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
frugal View Drop Down
Beginner
Beginner


Joined: 19 Dec 12
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote frugal Quote  Post ReplyReply Direct Link To This Post Posted: 20 Dec 12 at 7:52AM
Thx for the info.
Back to Top
frugal View Drop Down
Beginner
Beginner


Joined: 19 Dec 12
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote frugal Quote  Post ReplyReply Direct Link To This Post 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?




Edited by frugal - 20 Dec 12 at 10:14AM
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3529
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 20 Dec 12 at 7:48PM
Hi!

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

Cheers, Ingo
Back to Top
frugal View Drop Down
Beginner
Beginner


Joined: 19 Dec 12
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote frugal Quote  Post ReplyReply Direct Link To This Post 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

Edited by frugal - 14 Jan 13 at 2:13PM
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store