beeCoder
beeCoder

Reputation: 1

ng2-pdf-viewer getOutline() returns undefined

demo of ng2-pdf-viewer

To show the table of content I used getOutline() as mentioned in here

    this.pdf.getOutline().then((outline: any[]) => {
      this.dataSource.data = outline;
    });

It is working fine this pdf. But for a few pdf Outline is undefined. I have implemented this ng2-pdf-viewer for those few pdf only.Please help

Upvotes: 0

Views: 509

Answers (1)

beeCoder
beeCoder

Reputation: 1

I got it , While converting docx to pdf while doing SAVE AS - PDF format with go to "option dialogue box" and "tick on headings" this will preserve the headers as bookmarks .Actually the headers was getting removed as bookmark

Upvotes: 0

Related Questions