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

TOPIC:

How to add blank page in iOS ? 7 years 8 months ago #11075

  • wsk
  • wsk's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
Hi,
I want to add blank page in document,rather than create a empty PDF document.what I can do?pelease help me,thank you very much!I use the iospdfviewer3.6.5.

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

How to add blank page in iOS ? 7 years 7 months ago #11082

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
Hi,

you can use newPage method of PDFDoc class, something like:
[m_doc newPage:[m_doc pageCount] :400 :500];
[m_doc save];

To use this method you need a premium license

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

How to add blank page in iOS ? 7 years 5 months ago #11446

  • wsk
  • wsk's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
Hi,
I have finish adding and deleting new page.but I don't want to delete the original page.I just want to delete the new page.How to judge a new page or a original page?Looking forward to your reply,Thank you!

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

How to add blank page in iOS ? 7 years 5 months ago #11449

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
HI,

if you want to distinguish original pages from new pages you could save new page numbers (local storage like db, preferences...) and check if the page you're trying to delete is a new or original page.
The following user(s) said Thank You: wsk

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

  • Page:
  • 1
Powered by Kunena Forum