Updated document data from PDFDoc - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about iOS development and PDF
  • Page:
  • 1

TOPIC: Updated document data from PDFDoc

Updated document data from PDFDoc 4 years 6 months ago #6116

  • Navdeep_rs
  • Navdeep_rs's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 0
Hi,

I am using PDFOpenStream to open PDF file in PDF viewer. After modifying pdf i want to save pdf locally in encrypted format. i don't want to use save or saveas method that u provided. How can i extract updated document data in NSData format from PDFDoc class so that i can manually encrypt data and save it. Please reply fast, its urgent.

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

Updated document data from PDFDoc 4 years 6 months ago #6120

  • stronglee
  • stronglee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 92
  • Karma: 1
  • Thank you received: 2
Sorry for late answer , in core of the library , there not use cocoa method .

If you want save the PDF file must use save or saveas , "save" method will keep encrypt info.

Also you can add your own method in PDFFileStream. Read the data and save it to NSData.

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

Last edit: by GoliNeneswees.

Updated document data from PDFDoc 4 years 5 months ago #6248

  • Navdeep_rs
  • Navdeep_rs's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 0
I have written my own pdf stream class, where i am passing pdf data(nsdata) to create PDFstream and it is working fine, but when i save and get updated data from stream, to write my own file on disk, it seems to be encrypted. How can i get the decrypted data ?

As u mentioned above "save" method will keep encrypt info.

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

Updated document data from PDFDoc 4 years 5 months ago #6250

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 846
  • Karma: 43
  • Thank you received: 12
Save jus keep password protected PDF file, and save new objects back to PDF file.
not include APP encrypted data.

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

Updated document data from PDFDoc 1 year 5 months ago #12475

  • darmot
  • darmot's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0

stronglee wrote: Sorry for late answer , in core of the library , there not use cocoa method .

If you want save the PDF file must use save or saveas , "save" method will keep encrypt info.

Also you can add your own method in PDFFileStream. Read the data and save it to NSData.


Hi i am not able to get file which is edited and saved locally in IOS. Where do I get it from so that i can convert it in base64 to pass it on to hybrid development side . I am using your plugin

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

  • Page:
  • 1
Powered by Kunena Forum