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 - RenderPageToFile wrong output
  FAQ FAQ  Forum Search   Register Register  Login Login

RenderPageToFile wrong output

 Post Reply Post Reply
Author
Message
sko View Drop Down
Team Player
Team Player


Joined: 13 Feb 19
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote sko Quote  Post ReplyReply Direct Link To This Post Topic: RenderPageToFile wrong output
    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


Edited by sko - 15 Nov 23 at 1:49PM
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
sko View Drop Down
Team Player
Team Player


Joined: 13 Feb 19
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote sko Quote  Post ReplyReply Direct Link To This Post 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



Edited by sko - 17 Nov 23 at 8:14AM
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
tfrost View Drop Down
Senior Member
Senior Member


Joined: 06 Sep 10
Location: UK
Status: Offline
Points: 437
Post Options Post Options   Thanks (0) Thanks(0)   Quote tfrost Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
noramila View Drop Down
Beginner
Beginner
Avatar

Joined: 29 Aug 23
Location: India
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote noramila Quote  Post ReplyReply Direct Link To This Post 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.
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