Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF

TOPIC:

Roman numerals as page numbers 6 years 9 months ago #13995

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

we double checked the new beta version with the pdf file provided by you, and this code in viewWillAppear method:
NSString *pagenumber = [m_doc pageLabel:0];
NSLog(@"%@", pagenumber);
returns {"r":1}

Please try to remove the app from your device and reinstall using the latest beta version

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

Roman numerals as page numbers 6 years 9 months ago #14001

  • cornelius
  • cornelius's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 13
  • Thank you received: 0
Thank you

I deleted the app and re-tested it. The page numbers do work on the sample PDF I provided, but it doesn't work on the other PDFs.
I tried a few PDFs and all of them return nil except the sample PDF I provided

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

Roman numerals as page numbers 6 years 9 months ago #14004

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
can you please provide a pdf file with the issue?

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

Roman numerals as page numbers 6 years 9 months ago #14011

  • cornelius
  • cornelius's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 13
  • Thank you received: 0
Hi

You can use the PDF in you sample app. I can replicate this with the help.pdf file

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

Roman numerals as page numbers 6 years 9 months ago #14012

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

pageLabel method follows the PDF reference 1.7 (section 8.3.1), but help.pdf version is 1.5.
Older versions probably don't follow the same references and, in this cases, you have to use Advanced APIs to get the page label.

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

Powered by Kunena Forum