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

Read-only issue

More
9 years 4 months ago - 9 years 4 months ago #11328 by miles.
Read-only issue was created by miles.
Hey,

I am opening PDF using stream OpenMem and for some reason making annotations is disabled (annotations button has grey background)
I am using demo license.

So how to make file read-only and writable? Maybe I am accidentally setting read-only option somewhere.

I am looking at demo project and can't really see why pdfs opened from navigation screen are writable, but pager, asset, sd card are not.

Update: Seems if im loading directly PDF from disk, then it seems all is good with annotations. My question is this then: are you able to edit if you open it from memory stream after purchasing license?
Last edit: 9 years 4 months ago by miles..
More
9 years 4 months ago #11329 by Davide
Replied by Davide on topic Read-only issue
Hi,
OpenMem and OpenAsset are read only.
I suggest you to look at PDFMemStream class that handles writable stream (demo project doesn't implement this class).

I suggest you to look at PDFViewAct to better understand how the library works, here you will find some open methods usage.
- pager has a different implementation (PDFPagerAct)
- sdcard is writable, in the demo project the "Open From sdcard" button is searching for that pdf : "/sdcard/test.pdf" (you can edit it in MainActivity class)

The demo project has all the features available with the purchased one, so you can test and check all you want.
Time to create page: 0.382 seconds
Powered by Kunena Forum