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

TOPIC:

Reading annotations not created by Radaee 3 years 7 months ago #15243

  • MaxM
  • MaxM's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 19
  • Thank you received: 0
Thanks for the answer. Checked this option works. But on condition I need to open a PDF document without downloading it to the device (tablet).

I use the code to open the document:
Document.PDFStream pdfStream = pdfStream.open(((FileSource) source).getPath());
int result = document.OpenStream(pdfStream, "");

And in this version, the annotation pages are displayed as blank, white sheets located at the end of the document.

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

Reading annotations not created by Radaee 3 years 7 months ago #15244

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
dear user:
i not understand:
Document.PDFStream pdfStream = pdfStream.open(((FileSource) source).getPath());
if you open from a file path, codes like:
Document doc = new Document();
doc.Open(absolutePath, "");
//...
doc.Close();
if you open from http address, codes like:
PDFHttpStream stream = new PDFHttpStream("http://yourdomain.com/test.pdf");
Document doc = new Document();
doc.OpenStream(stream, "");
//...
doc.Close();
stream.Close();
The following user(s) said Thank You: MaxM

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

Last edit: by radaee.

Reading annotations not created by Radaee 3 years 7 months ago #15245

  • MaxM
  • MaxM's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 19
  • Thank you received: 0
Fixed the code:
int result = document.Open (((FileSource) source) .getPath (), "");
where getPath () = "/data/user/0/by.mrsoft.mrdoc/files/Documents Files / document_be7d7e24-eaca-4c49-879f-11324f5c65ce / file_6fc35ef3-3fbb-4b8e-a352-b215b2f7b8f2"
The result has not changed. Any other suggestions.

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

Reading annotations not created by Radaee 3 years 7 months ago #15246

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
Dear user:
"/data/user/0/by.mrsoft.mrdoc/files/Documents Files / document_be7d7e24-eaca-4c49-879f-11324f5c65ce / file_6fc35ef3-3fbb-4b8e-a352-b215b2f7b8f2"
if this path is sand box of another app, you have no access right to open it.
if this path is located in sandbox of PDF reader, please check this path is not a directory and is a valid PDF file.
example path: "/sdcard/mydir/demo.pdf".
the path shall reference to a pdf file, and is readable by your app.
The following user(s) said Thank You: MaxM

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

Last edit: by radaee.

Reading annotations not created by Radaee 3 years 7 months ago #15247

  • MaxM
  • MaxM's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 19
  • Thank you received: 0
Thanks for the answer.
This is not another application, this is the application where the Radaee library is installed, and this path is not a directory. Also, this file is pdf, only without the extension.
The file is opened and read, like everyone else, the problem is that pages with annotations cannot be read (just white sheets)

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

Reading annotations not created by Radaee 3 years 7 months ago #15248

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
Dear user,

Does this happen with certain pdf or all of them?
Can you please share the pdf with us? (if the pdf is reserved you can share it on tickets area www.radaeepdf.com/support/tickets)

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

Powered by Kunena Forum