Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

Text rendering issues

More
10 years 9 months ago #9055 by artkön
Hi,

after the first start of my application the first opened document is rendered correctly. If I open the same document once again, all texts in the document are not rendered. Did I miss something? My setup:

I call Global.Init(this) in my activity, then open a Fragment with PDFLayoutView provided by your test application. In my Fragment I open the file with:
Code:
document = new Document(); document.Open(documentPath, ""); pdfView.PDFOpen(document, this);

in onDestroyView() of my Fragment I call:
Code:
pdfView.PDFClose(); document.Close(); super.onDestroyView();

and in onDestroy() of my Activity:
Code:
Global.RemoveTmp();
More
10 years 9 months ago #9057 by support
Replied by support on topic Text rendering issues
It seems second time fonts are not instantiating properly.
Is your pdf file embedding fonts?
Is your pdf file relying on external fonts?
More
10 years 9 months ago #9059 by artkön
Replied by artkön on topic Text rendering issues
I think the fonts are embedded, At least if I set a PDFFontDelegate on the document it is not being called.
More
10 years 9 months ago #9060 by support
Replied by support on topic Text rendering issues
Where are you calling Global..init?
Try not calling the RemoveTmp then let's me know.
More
10 years 9 months ago #9061 by artkön
Replied by artkön on topic Text rendering issues
I call Global.init in the onCreate Method of my activity.

If I do not call RemoveTmp the document is shown properly.
More
10 years 9 months ago #9062 by support
Replied by support on topic Text rendering issues
I could expect that your file isn't containing all the embedded fonts and some resources are taken from the temporary directory.
Cleaning it up such resources, moved in the tmp while Init() is executed, are completely absent after the RemoveTmp.

To double check it: may you forward one of your PDF file?
We will look at it.
Time to create page: 0.406 seconds
Powered by Kunena Forum