Arg!
Okay, scratch my last idea. There is no way to access an isolated storage file via a URI, which is what I was kinda counting on. Not sure where to go from here. Everything i find, most people end up just suggesting 'oh, just covert the bytes into a string, and read the string values themselves', but of course, i can't do that if I'm trying to read a .pdf file. I'll still look into this, but it might not be doable without having to write the file temporarily to the computer out in the open. And since they would need the password to open the file anyways, I would simply have to depend on putting the file in an 'odd' place that the user wouldn't look for it, and that is pretty unacceptable security.
Update:
I started looking into Apose.pdf.kit, which worked great with the trial. The software allows you to take a .pdf file, load it into a memorystream, and decode all the pages in the .pdf file into an array of system.drawing.bitmaps. The only issue (for me) was that it takes about 2 seconds to decode each page, so decoding them all up front isn't really practical, you need to decode each page on demand.
The only issue with the software was that it costs around $1700 for the single developer, royalty free license. Jeez.
In the end, we decided to just export the files with adboe writer into images, and just make a tool to view the images as if it was a pdf. I had to write a hook program to disable the printscreen button, but after that, the tool basically does what I want. Still feels like cheating though.
Update:
I started looking into Apose.pdf.kit, which worked great with the trial. The software allows you to take a .pdf file, load it into a memorystream, and decode all the pages in the .pdf file into an array of system.drawing.bitmaps. The only issue (for me) was that it takes about 2 seconds to decode each page, so decoding them all up front isn't really practical, you need to decode each page on demand.
The only issue with the software was that it costs around $1700 for the single developer, royalty free license. Jeez.
In the end, we decided to just export the files with adboe writer into images, and just make a tool to view the images as if it was a pdf. I had to write a hook program to disable the printscreen button, but after that, the tool basically does what I want. Still feels like cheating though.
Labels: .Net, isolatedstorage, memorystream, pdf, view document
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home