0

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

  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Sep 06 '21 at 12:59

1 Answers1

0

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