What does PDFOutline really represent - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: What does PDFOutline really represent

What does PDFOutline really represent 3 years 4 months ago #9285

  • Gracanin
  • Gracanin's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 25
  • Thank you received: 0
I have implemented the following recursive method for reaching the outlines:
- (void)loadAllSubChapters:(PDFOutline*)outline {
if (outline == nil) {
return;
}

if (![self.contentLabels containsObject:outline.label]) {
[self.contentLabels addObject:outline.label];
}

PDFOutline *parent = outline;
PDFOutline *child = outline.child;
PDFOutline *sibling = outline.next;

[self loadAllSubChapters:child];
[self loadAllSubChapters:sibling];
}

I have a big pdf file that contains a lot of chapters and subchapters, going two/three levels into depth... To make it more clear here is an example of a main chapter (i.e. it has no parent chapter) containing some subchapters:

<chapter - level 0>
  • <subchapter A - level 1>
    • <subchapter A1 - level 2>
    • </subchapter A1 - level 2>
  • </subchapter A - level 1>
  • <subchapter B - level 1>
    • <subchapter B1 - level 2>
      • <subchapter B1.1 - level 3>
      • </subchapter B1.2 - level3>
    • </subchapter B1 - level 2>
  • </subchapter B - level 1>
</chapter - level0>

When I call the loadAllSubChapters: starting with rootOutline (called over PDFDoc's object) I get only chapter titles from levels 0 and 1, which means that all children from chapters from level 1 are nil...

I am really interested why is that so? Could you please tell me what does PDFOutline object really represent?

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

Last edit: by Gracanin. Reason: Needed to modify the topic title

What does PDFOutline really represent 3 years 4 months ago #9287

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 571
  • Karma: 6
  • Thank you received: 46
We've application containing books with incredible dimension (10.000 pages and more) and with huge nested TOC and are handling them without issue.
May you send us one of your pdf file?
May be opening a support ticket?

When opening the ticket, please enter the link to this forum thread in the text.

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

  • Page:
  • 1
Powered by Kunena Forum