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

Reading annotations not created by Radaee

More
IP: 91.215.176.177 5 years 8 months ago #15243 by MaxM
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.
More
IP: 111.196.241.137 5 years 8 months ago - 5 years 8 months ago #15244 by radaee
dear user:
i not understand:
Code:
Document.PDFStream pdfStream = pdfStream.open(((FileSource) source).getPath());
if you open from a file path, codes like:
Code:
Document doc = new Document(); doc.Open(absolutePath, ""); //... doc.Close();
if you open from http address, codes like:
Code:
PDFHttpStream stream = new PDFHttpStream("http://yourdomain.com/test.pdf"); Document doc = new Document(); doc.OpenStream(stream, ""); //... doc.Close(); stream.Close();
Last edit: 5 years 8 months ago by radaee.
More
IP: 91.215.176.177 5 years 8 months ago #15245 by MaxM
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.
More
IP: 111.196.241.137 5 years 8 months ago - 5 years 8 months ago #15246 by radaee
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.
Last edit: 5 years 8 months ago by radaee.
More
IP: 91.215.176.177 5 years 8 months ago #15247 by MaxM
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)
More
IP: 185.178.95.248 5 years 8 months ago #15248 by nermeen
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 )
Time to create page: 0.535 seconds
Powered by Kunena Forum