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

TOPIC:

how to open document in pdfvpage with password 7 years 2 months ago #13438

  • joshnaAppcare
  • joshnaAppcare's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 10
  • Thank you received: 0
hi i want to open a PDF Document by PDFVPage with giving password.. how can i do it?

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

how to open document in pdfvpage with password 7 years 2 months ago #13440

  • federico
  • federico's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 261
  • Thank you received: 18
Hi,
You could create a new PDFDoc object and so call the method open and insert path and password in parametres.
In the end just create a new PDFVPage object initializing it by passing the new PDFDoc object that you already created and the page that you want.

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

how to open document in pdfvpage with password 7 years 2 months ago #13448

  • joshnaAppcare
  • joshnaAppcare's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 10
  • Thank you received: 0
hi,
how to add PDFVPage tosubview as this return id PDFVPage.init(pdfDoc, Int32(pagenow))

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

how to open document in pdfvpage with password 7 years 2 months ago #13449

  • federico
  • federico's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 261
  • Thank you received: 18
Hi,
Can you better explain what are you trying to do?

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

how to open document in pdfvpage with password 7 years 2 months ago #13451

  • joshnaAppcare
  • joshnaAppcare's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 10
  • Thank you received: 0
Hi,
I want to display pdf to my own view like i want to add as subview, before PDFVPage I used PDFView where it is a subclass of scrollview so it can add to my view as a subview, but for PDFVPage how can i add as subView as it is subclass of NSObject..

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

Last edit: by joshnaAppcare.

how to open document in pdfvpage with password 7 years 2 months ago #13458

  • federico
  • federico's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 261
  • Thank you received: 18
Hi,
If you want to display a PDF in a subview you have to use PDFView because PDFVPage isn't a view but a NSObject and so you can't display it.

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

  • Page:
  • 1
Powered by Kunena Forum