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

TOPIC:

Caching of data 9 years 9 months ago #6621

  • Semenovich
  • Semenovich's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 13
  • Thank you received: 0
I need to cache some data (fonts for example) when I switch between pdf documents. Can I do this with your library API? What does the method Document.SetCache() doing?

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

Caching of data 9 years 9 months ago #6626

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
no, you need to implement it your self.

SetCache, is used internally to save temp data while rendering (e.x. compressed images) and these data is deleted when the document is closed.

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

Caching of data 9 years 9 months ago #6661

  • williams_edward7
  • williams_edward7's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
Is caching turned on by default? I want to be able to open a pdf entirely in memory without having cached data written to the device.

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

Caching of data 9 years 9 months ago #6662

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
SetCache is just used for created images/fonts/and some import page data.
other words: SetCache are just for some new objects, that added to document.

you can use PDFMemStream and Document.OpenStream();
or can use Document.OpenMem();

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

  • Page:
  • 1
Powered by Kunena Forum