Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

polyphenol

macrumors 68020
Original poster
Sep 9, 2020
2,160
2,618
Wales
I’ve had loads of problems with Word creating PDFs. Basically, whatever I have done, it fails during the PDF creation process under macOS. I have to re-open the document under Windows and create the PDF like that.

Aside from being a nuisance, I’ve had problems with some special characters/emoji which just do not work under Windows. For one example, flag emoji. That has meant a whole heap of workarounds and I have got thoroughly sick of it.

Taking the problem as a challenge, I have re-created a document from scratch in Pages. (Only copying some text as plain text.) Almost all my issues have either resolved or I’ve found another way of achieving. For my first real exposure to Pages, I’m pretty happy.

Until I export the document to PDF. Though the first part is great – Export as PDF is so fast! The PDF is very close to the view in Pages. Everything inside the DPF is wonderful including the ToC itself.

The problem is that the Table of Contents sidebar simply doesn’t work in any PDF viewer – Preview, Acrobat, multiple browsers. Nor does the Bookmarks view. Both look as if the PDF creation process managed the headers for ToC and Bookmarks - then gave up.

1700223375888.png


1700223388102.png


Even the thumbnails and contact sheet views work well!

1700223419976.png


Ironically, if I export the document from Pages as a Word document, then create a PDF from Word, the ToC works properly! (But is messes up so many other features of formatting, it would be a major effort to fully convert to Word.)

I’ve tried exporting as an EPUB – which is almost quite good. The Table of Contents works OK but there is no way of showing that in a sidebar.) And I wouldn’t wish to force readers to use EPUB. Plus several formatting options would have to be reconsidered.

1700223463507.png


And it doesn’t show Bookmarks.

Obviously, what I want is a nice simple answer. Do xxx and it will all work as it should. But I have a nasty feeling it will end up being a complete pain and the best answers would cost. (No – buying Adobe InDesign is not an option.)

And yes, I did create a super-simple Pages document with only a few lines of plain text and a ToC. That failed exactly the same.
 

polyphenol

macrumors 68020
Original poster
Sep 9, 2020
2,160
2,618
Wales
Just adding an image of how the sidebar should look. This is a PDF produced from Word. The usual expand/contract icons work exactly as you'd expect.

1700228521138.png
 

polyphenol

macrumors 68020
Original poster
Sep 9, 2020
2,160
2,618
Wales
Playing about - still trying to make this work - when I tried to display ToC within Pages. And it was just like the PDF - a header line only. At the bottom of the sidebar it asked if I wanted to insert a ToC. While I could see the ToC in my document, and it works both in Pages and as a PDF.

Decided to try it - let it create a new ToC. Spent a few minutes reformatting it. And deleted my old ToC.

Now I get ToC sidebar in PDFs as well.

No idea why creating ToC from ToC sidebar is different from menu Insert - Table of Contents - Document.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.