Print Page | Close Window

RenderPageToFile wrong output

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=4028
Printed Date: 18 May 24 at 1:10PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: RenderPageToFile wrong output
Posted By: sko
Subject: RenderPageToFile wrong output
Date Posted: 15 Nov 23 at 9:11AM
Hi,

i use RenderPageToFile with Delpjhi 10.4 to get a bitmap of a PDF page.
In a Windows App all works fine, but in the same App compiled as Android App any fields or textblocks are not visible or wrong attributes:

Arial : is visible
Arial bold : is not visible
Arial kursiv : is visible but not bold
Time New Roman : is not visible
Time New Roman bold : is not visible
Time New Roman kursiv : is not visible
Courier New : is visible
Courier New bold : is visible but not bold
Courier New kursiv: is visible but not kursiv 

What can i do to RenderPageToFile correct to a bitmap?

Ciao
Stefan



Replies:
Posted By: Ingo
Date Posted: 16 Nov 23 at 5:00PM
The fonts won't be embedded?
Are the fonts available on the device?
What sometimes helps are functions like:
>> NormalizePage,
>> CombineContentStreams,
(TransformFile),
(BalancePageTree).



-------------
Cheers,
Ingo



Posted By: sko
Date Posted: 17 Nov 23 at 7:59AM
All you wrote has no effect :-(
The fonts are added to PDF, if i show it in Android Chrome all is correct!

Now i tried 
ViewPrintQP.RenderPageToString(120,1,9);

to get the page as HTML, in Windows this works fine, but in Android the result is a TFoxitQPLBytearray and i can't findout how to declare this (unknown type TFoxitQPLBytearray )

Ciao
Stefan



Posted By: Ingo
Date Posted: 18 Nov 23 at 8:33PM
Sorry.
Don't know how to step into your issue.
Perhaps here's still another one able to dig into your issue.



-------------
Cheers,
Ingo



Posted By: tfrost
Date Posted: 20 Nov 23 at 12:40PM
1. I know nothing about Android development.
2. Opening a PDF and showing fonts correctly in a specific environment (eg 'Android Chrome') is not sufficient to prove that the fonts are embedded; they may be substituted somehow, or found by the app elsewhere. Open the problem PDF in Acrobat and press control-D to show the embedded fonts and whether they are subsetted.
3. If they are not embedded, or not in a way that your application can use them on Android, then sorry, I also cannot help further for this environment, but I hope this may help you in some way.


Posted By: noramila
Date Posted: 13 Dec 23 at 5:48AM
First check your PDF has embedded fonts, check Android's support for these fonts, update your PDF rendering library, try altering RenderPageToFile settings, debug for font loading/rendering issues and explore alternative PDF rendering methods.



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