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

TOPIC:

PDF to image before open PDF 7 years 4 months ago #11498

  • 부길김
  • 부길김's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 8
  • Thank you received: 0
Hi. I have a functional question.

Before opening the file, it is necessary to do a caching thumbnail task. because some big pdf file is too slow to show thumbnail list.

so i use this method.

< method start >
String pdfPath = app().getFilePath(App.FileType.PDF,context.getResources().getString(R.string.appknot_pdf_file_name));
String pdf_path = pdfPath;
String pdf_pswd = "";
Document m_doc = new Document();
m_doc.Open(pdf_path, pdf_pswd);
< method end >

but when i use Open method, it occurs error.

how can i use this method before open PDF?

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

Last edit: by 부길김.

PDF to image before open PDF 7 years 4 months ago #11501

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
What error exactly? Are you sure you are passing an accessible path?
For more details about the error codes of the open method, please check: www.radaeepdf.com/documentation/javadocs...ng-java.lang.String-

For the thumbnail caching, we recommend-if possible- to generate PDFs that have pre-loaded thumbnails using appropriate tools like (Adobe InDesign). as in this case the library will use these thumbs directly.

Or you are going to need to save the thumbnails in cache and do not delete them.
For this you can check: PDFGridItem.render , here we save in cache the thumbnail of the PDF's first page, you need to do the same but for all the pages.and without deleting them.

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

  • Page:
  • 1
Powered by Kunena Forum