1

I am having a hard time searching for this question, is there no one can answer this question? I am hoping for a good answer with example. follow this question iPhone - pdf encryption but I think PDFDocument class only exists in mac os.and this is similar to this question reading with CGPDFDocumentRef and saving PDF haven't got an answer. :(

Community
  • 1
  • 1
Lunayo
  • 538
  • 7
  • 32

1 Answers1

-1

Check out listing 13-4 in Apple's Quartz 2D Programming Guide.

Which I found when I looked at this related question.

Community
  • 1
  • 1
Michael Dautermann
  • 88,797
  • 17
  • 166
  • 215
  • 1
    the programming guide shows how to create a PDF file, instead what I want is convert a CGRectPDFDocumentRef to NSData and then save to file, is this possible? Because I have already got a CGPDFDocumentRef (got from url) and want to change the password and then save to file again. – Lunayo Nov 25 '11 at 13:20
  • 1
    Did you find a solution for this already? Thats the same thing in want to do. – jtmayer May 21 '13 at 12:29