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!
RenderPageToFile wrong output |
Post Reply |
Author | |
sko
Team Player Joined: 13 Feb 19 Status: Offline Points: 33 |
Post Options
Thanks(0)
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 |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3527 |
Post Options
Thanks(0)
|
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 |
|
sko
Team Player Joined: 13 Feb 19 Status: Offline Points: 33 |
Post Options
Thanks(0)
|
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 |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3527 |
Post Options
Thanks(0)
|
Sorry.
Don't know how to step into your issue. Perhaps here's still another one able to dig into your issue. |
|
Cheers,
Ingo |
|
tfrost
Senior Member Joined: 06 Sep 10 Location: UK Status: Offline Points: 437 |
Post Options
Thanks(0)
|
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.
|
|
noramila
Beginner Joined: 29 Aug 23 Location: India Status: Offline Points: 5 |
Post Options
Thanks(0)
|
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.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store