Jump to content

Recommended Posts

The PDFlib.log is how we debug our PDF problems. It's the library used by Publisher when Publisher creates PDF files. You can turn it on/off by following Dan's instructions at:

 

https://forum.affinity.serif.com/index.php?/topic/92624-export-to-pdf-error/&tab=comments#comment-491521

 

If you change the file path (C:\Temp to D:\Temp or whatever), just edit the reg file using Notepad to update the path. Also, always inspect reg files to make sure it's not doing something it shouldn't do - before running them.

 

Share this post


Link to post
Share on other sites

I realized that this is happening in all of my other documents as well. 

When you add in the TOC hyperlinks are broken, the crashes from hyperlinking to Anchors, and the lack of bookmarks - the Export PDF capability is severely lacking.

Share this post


Link to post
Share on other sites

Ok.

  1. TOC hyperlinks to wrong pages.
  2. Index hyperlinks to wrong pages.
  3. Hyperlinks to anchors causes Export to PDF to crash.
  4. Doesn't support PDF bookmarks.

At this point, why even have an Export to PDF option? I'm so frustrated that I feel like I should go back to using MS Word because that just works without any problems.

 

Share this post


Link to post
Share on other sites

Just to check that there is nothing system specific, can you export from the attached test publication a pdf where TOC links, heading URL hyperlinks and index links operate correctly?

The attached PDF is exported as (web) and Acrobat is just used to specify facing pages view and opening at whole page fitted in view.

TOCtest.afpub

TOCtest.pdf

Share this post


Link to post
Share on other sites

That seems to work, but that's a pretty simple document. 

My book release is Tuesday, so I need to get my PDF working before then for digital and hardcover release. 

I need to spend the rest of the week finding all of the bad hyperlinks and then fixing them one-by-one using Adobe Acrobat Pro. I should have just bought InDesign, because I'm not saving any money (and especially not any time!) by having to spend all this time doing fixes for bugs. I'm the first creator to use Publisher (for print and PDF) at my publisher, so I'm definitely going to recommend the other creators stay away from Affinity Publisher's buggy PDF export and inability to support our printer's bleed requirements.

Share this post


Link to post
Share on other sites

Okay. After studying the TOC hyperlink problem, I've figure out what's really happening on export to PDF.

For h1s, the exported PDF has 2 hyperlink boxes - first box surrounds the h1 text, second box surrounds the page number.

In some (not all), the first box overlaps the second box, causing the page number hyperlink to be under the h1 text hyperlink box.

All of the h1 text hyperlink boxes are invalid, so when the h1 text hyperlink box overlaps the page number, it goes to page 4. In the other instances, where the h1 text hyperlink box doesn't overlap, then the page number hyperlink is visible and correctly works. 

The problem is that the h1 text hyperlink boxes all go to TOC page +1 (in this instance TOC is page 3, so next page is page 4.)

When I delete the h1 text hyperlink boxes (and leave the h1 page number hyperlink boxes), the TOC works as expected. With the sole exception of the very first chapter 1 hyperlink text box which doesn't contain a page number hyperlink box and overlaps both the first and 2nd hyperlink name and page number boxes - which I resize to just the page number to make it work.

Screenshot attached

This doesn't fix the anchor problem or Index problem, but at least it's an easy fix but that requires me to buy Adobe Acrobat Pro.

Publisher_TOC_link_problem.png

Share this post


Link to post
Share on other sites

Interesting (because I'm not in urge of producing anything ;-) 

How are the superfluous TOC hyperlinks (surrounding the chapter headings) generated? I'd myself prefer to have hyperlinks extended to cover the whole TOC entry and not the mere page number so I typically end up stretching them in Adobe Acrobat Pro. So for me this would be desired behavior in certain kinds of projects (but link targets should naturally be correct!).

Or are these manually made hyperlinks to Chapter entries made to TOC, and then you have anchors within the chapter headings (or on the same page) where these hyperlinks are meant to be pointing?

Share this post


Link to post
Share on other sites

I have no idea how the TOC links are generated. Here's what I've done to fix things:

 

1) Delete all hyperlink boxes for TOC text

2) Remove all column breaks in Index

3) Manually insert hyperlinks to places where anchors break the Export to PDF

 

I'd love to know how to turn off the TOC generation of hyperlinking the text and only hyperlink the page numbers - That would fix problem 1 with the overlapping hyperlink boxes.

 

Next, I discovered that my Index problems was because col break were making the hyperlink box the entire height of the page (somehow the col break was being done before the Index hyperlink was finished. I fixed this by removing all col breaks from Index and using empty picture boxes with text wrap to force breaks.

 

Here's what my Index looks like the boxes are the hyperlink boxes/clickable area, so you can see why the links were bad (one box was overlaying over all of the other boxes)

Publisher_Index_link_problem.png

Share this post


Link to post
Share on other sites
1 hour ago, JimWelch said:

I'd love to know how to turn off the TOC generation of hyperlinking the text and only hyperlink the page numbers

I think that's the default operation -- conversely I'd like to know how the link can be extended to cover the whole TOC entry! I just did it manually by adding invisible boxes and then creating and attaching hyperlinks to them that point to anchors that have been added just below the headings on corresponding pages. This works fine and allows also updating the TOC without losing these links, so for me this is the solution if there is no way to have automatically extended TOC links.

The page number hyperlinks (just around the page number) should be automatically generated when you insert (or update) TOC and have checked the heading styles to be included in scanning, and ensured that the page number column has check mark so that the TOC entry gets the page number. But do you actually have a generated TOC, or purely manually created and hyperlinked text frame (but possibly in TOC frame)? When you have the TOC panel visible, do you have any styles checked for inclusion?

Have you tried if you can avoid the problem with column breaks (either in the TOC or in the Index) by using a paragraph attribute or TOC/index style with flow option for starting the entry at next column, similarly as I have done in the attached publication? I suppose this method could avoid mistakenly created overlarge hyperlink boxes.

When you have the Hyperlinks panel active and go through the links, do they lead to correct anchors when you click "Go to Target" button? (and just fail when you create the PDF)?

The following are updated versions of same files in earlier post:

TOCtest.afpub

TOCtest.pdf

Share this post


Link to post
Share on other sites
1 hour ago, Lagarto said:

I think that's the default operation -- conversely I'd like to know how the link can be extended to cover the whole TOC entry! I just did it manually by adding invisible boxes and then creating and attaching hyperlinks to them that point to anchors that have been added just below the headings on corresponding pages. This works fine and allows also updating the TOC without losing these links, so for me this is the solution if there is no way to have automatically extended TOC links.

The page number hyperlinks (just around the page number) should be automatically generated when you insert (or update) TOC and have checked the heading styles to be included in scanning, and ensured that the page number column has check mark so that the TOC entry gets the page number. But do you actually have a generated TOC, or purely manually created and hyperlinked text frame (but possibly in TOC frame)? When you have the TOC panel visible, do you have any styles checked for inclusion?

Have you tried if you can avoid the problem with column breaks (either in the TOC or in the Index) by using a paragraph attribute or TOC/index style with flow option for starting the entry at next column, similarly as I have done in the attached publication? I suppose this method could avoid mistakenly created overlarge hyperlink boxes.

When you have the Hyperlinks panel active and go through the links, do they lead to correct anchors when you click "Go to Target" button? (and just fail when you create the PDF)?

The following are updated versions of same files in earlier post:

TOCtest.afpub

TOCtest.pdf

In my Hyperlinks panel, only external hyperlinks are shown. Is there a way to see hyperlinks that go to anchors?

 

Share this post


Link to post
Share on other sites
4 minutes ago, JimWelch said:

In my Hyperlinks panel, only external hyperlinks are shown. Is there a way to see hyperlinks that go to anchors?

Both should show:

hyperlinks_panel.jpg.4bdcd242a9f920157d6b4f9c80dd2fdb.jpg

Share this post


Link to post
Share on other sites
Just now, Lagarto said:

Both should show:

hyperlinks_panel.jpg.4bdcd242a9f920157d6b4f9c80dd2fdb.jpg

 

What version are you using? I'm using 1.7.2 and only external hyperlinks are shown to me.

 

Share this post


Link to post
Share on other sites
1 minute ago, JimWelch said:

What version are you using? I'm using 1.7.2 and only external hyperlinks are shown to me.

1.7.3.475 (latest beta)

Share this post


Link to post
Share on other sites
1 minute ago, Lagarto said:

1.7.3.475 (latest beta)

Thanks. That might explain some differences. Hopefully, they've already fixed a few things that I'm running into on 1.7.3. 

Share this post


Link to post
Share on other sites

I opened the TOCTest.afpub file in the release version and it does show the hyperlinks that are links to anchors. They also operate ok.There must be something that's corrupt in your file. When you insert a hyperlink via menu (Text > Interactive > Insert Hyperlink), it should automatically be added also in the Hyperlinks list (you do not need to add the hyperlink from within the Hyperlinks panel). 

Share this post


Link to post
Share on other sites

I've also deleted my entire TOC and recreated it and the h1 chapter title/text hyperlinks are still there and still overlap and cause problems, so I'm pretty sure it's not something I did on my own.

Share this post


Link to post
Share on other sites

How do the title/text hyperlinks show when you are in Publisher? Automatically created hyperlinks should not show in any way on the page, or in the Hyperlinks panel, either (they are implicit and will only show in the exported PDF)? The hyperlinks that show in the Hyperlinks panel are all manually created.

Share this post


Link to post
Share on other sites

TOC links (that is, the links that are attached to TOC page numbers) are automatically generated and should not show there, but all manually added hyperlinks (e.g. those that you have created by selecting text and then targeted to a specific page within the document, or to a previously created anchor point) should show, as should url hyperlinks.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

These are the Terms of Use you will be asked to agree to if you join the forum. | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.