Google-drive – Google Docs: table of contents & exporting as PDF

google docsgoogle-drive

I have a google document in which I used the built-in "generate table of contents" function to add a table of contents. It works perfectly in the browser/online.

But my problem came after I exported the document as a PDF. When I opened the PDF and then clicked an entry on the table of contents, it directs me to the corresponding page in the web app of google docs… instead of the corresponding page in the actual PDF itself.

Am I forgetting to do something, or is this just how it normally works? I thought the table of contents that was generated in the google doc would then function like a normal, MS-Word-generated table of contents that takes you to the page IN the pdf.

[Sorry, this is really awkwardly explained. I can't think of how to better word this, though.]

Best Answer

What you are experiencing is the intended behavior as per the google product team.

https://productforums.google.com/forum/#!topic/docs/gXsXq3zz7ak%5B1-25-true%5D

The workaround as mentioned here is to export it to .odt (LibreOffice) or .docx (MS Office) format and then export as PDF from the respective software.

I have tested the workaround in LibreOffice (free and open source)