Print Page | Close Window

RenderPageToString / File changing fonts

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=2405
Printed Date: 22 Jul 25 at 2:36PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: RenderPageToString / File changing fonts
Posted By: steve
Subject: RenderPageToString / File changing fonts
Date Posted: 14 Sep 12 at 2:43PM
Hi,

Using 8.16 from C# I've noticed that for some PDFs calling RenderPageToString or RenderPageToFile
renders a representation of the original document but with the font changed to what looks like Calibri.

Inspecting the document using GetPageText(4) shows that the fonts are correctly identified as "TimesNewRomanPSMT".

Any ideas how to fix this so that I get an accurate rendering of the original document?

Is it possible it can't find the TimesNewRomanPSMT font so defaults to Calibri?  If so is there a way I can add this font or change the default font to Times New Roman or similar?

Many thanks,

Steve



Replies:
Posted By: AndrewC
Date Posted: 17 Sep 12 at 3:51AM

Is the TimeNewRomanPSMT font installed on your PC ?

If not then the renderer and any PDF viewer for that matter has to find a font to substitute.  The substitution process is not defined in the PDF spec.

You would need to create a new case at  http://www.quickpdflibrary.com/support/support-query.php - http://www.quickpdflibrary.com/support/support-query.php  and then send the file for us to see exactly what is going on and what options are available.

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