Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC:

Text rendering issues 8 years 10 months ago #9055

  • artkön
  • artkön's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
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:
document = new Document();
document.Open(documentPath, "");
pdfView.PDFOpen(document, this);

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

and in onDestroy() of my Activity:
Global.RemoveTmp();

Please Log in or Create an account to join the conversation.

Text rendering issues 8 years 10 months ago #9057

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
It seems second time fonts are not instantiating properly.
Is your pdf file embedding fonts?
Is your pdf file relying on external fonts?

Please Log in or Create an account to join the conversation.

Text rendering issues 8 years 10 months ago #9059

  • artkön
  • artkön's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
I think the fonts are embedded, At least if I set a PDFFontDelegate on the document it is not being called.

Please Log in or Create an account to join the conversation.

Text rendering issues 8 years 10 months ago #9060

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
Where are you calling Global..init?
Try not calling the RemoveTmp then let's me know.

Please Log in or Create an account to join the conversation.

Text rendering issues 8 years 10 months ago #9061

  • artkön
  • artkön's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
I call Global.init in the onCreate Method of my activity.

If I do not call RemoveTmp the document is shown properly.

Please Log in or Create an account to join the conversation.

Text rendering issues 8 years 10 months ago #9062

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
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.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum