Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about iOS development and PDF
  • Page:
  • 1

TOPIC:

Updated document data from PDFDoc 9 years 11 months ago #6116

  • Navdeep_rs
  • Navdeep_rs's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • 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 9 years 11 months ago #6120

  • stronglee
  • stronglee's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 93
  • 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 9 years 11 months ago #6248

  • Navdeep_rs
  • Navdeep_rs's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • 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 9 years 11 months ago #6250

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
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 6 years 10 months ago #12475

  • darmot
  • darmot's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0

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