Add Space to Multi-line Bookmarks

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Post Reply
hoderd
User
Posts: 6
Joined: Sat Jun 18, 2016 6:32 pm

Add Space to Multi-line Bookmarks

Post by hoderd »

When generating multi-line bookmarks from sheet text they come in without spaces. Is there a way to add spaces or can this be added as a feature request?
For example the sheet title on an architectural drawing may be like this on a drawing:

LG-L3 SINGLE
OCCUPANT
PATIENT
TOILETS

The bookmark looks like this:

LG-L3 SINGLEOCCUPANTPATIENTTOILETS
Willy Van Nuffel
User
Posts: 2347
Joined: Wed Jan 18, 2006 12:10 pm

Re: Add Space to Multi-line Bookmarks

Post by Willy Van Nuffel »

Hello,

I can only confirm the problem.

Even when there is a space at the end of each line of the title, it does not get incorporated in the bookmark.

I tried a work-around by introducing a space via the "Title Formatting" option "Add text after each title" but that does not help neither.

Best regards.
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Add Space to Multi-line Bookmarks

Post by Sasha - Tracker Dev Team »

Hello guys,

Hopefully fixed this one - the fix will be available from the next major build 323.
Can you send me a test document so that I can see whether it works correctly for your case?

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Willy Van Nuffel
User
Posts: 2347
Joined: Wed Jan 18, 2006 12:10 pm

Re: Add Space to Multi-line Bookmarks

Post by Willy Van Nuffel »

Hello,

As an attachment I added a test PDF with two titles consisting of multiple lines.

By further testing, I have the impression that the problem is rather linked to the formatting of the text in the titles itself.

When you type a text in a text box and the text has to jump to the next line, it seems like there is automatically put a return at the end of the line. This makes that there is no space at the end and that the bookmark is missing that space character.

When you edit that same title and you replace the return by a space, then the bookmark gets generated correctly.

Can you share this finding?

Best regards.
Attachments
Test with bookmarks.pdf
(14.75 KiB) Downloaded 70 times
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Add Space to Multi-line Bookmarks

Post by Sasha - Tracker Dev Team »

Hello Willy,

Here are the results of my tests and your file:
Capture18.PNG
Capture17.PNG
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Willy Van Nuffel
User
Posts: 2347
Joined: Wed Jan 18, 2006 12:10 pm

Re: Add Space to Multi-line Bookmarks

Post by Willy Van Nuffel »

If I understand it correctly, you (still) have the same problem as I have when creating the bookmark for title number 2?
Did this (still) happen with the 'fix' you mentioned before?

I do not know if you can fix it like this for a title consisting of multiple lines:
- in case if in the title there is no space at the end of a line that is followed by another line, then add a space in the bookmark
- in case if there is a return at the end of a line that is followed by another line, then replace the return by a space in the bookmark

Thanks for the follow-up.
Last edited by Willy Van Nuffel on Sun Oct 08, 2017 7:20 am, edited 1 time in total.
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Add Space to Multi-line Bookmarks

Post by Sasha - Tracker Dev Team »

Hello Willy,

Oops, did not see that. Implemented a fix for that logic:
Capture19.PNG
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Willy Van Nuffel
User
Posts: 2347
Joined: Wed Jan 18, 2006 12:10 pm

Re: Add Space to Multi-line Bookmarks

Post by Willy Van Nuffel »

That's great. Thanks for implementing this fix.

Unfortunately, I still have one more doubt.

I am not really sure if returns are allowed in bookmarks, but in case if yes:
would it be an idea to implement "replace returns (in title) by spaces (in bookmark)" as an option, via a check box ?

In particular cases it might be preferred to keep these returns in the resulting bookmarks.

Thanks for consideration.
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Add Space to Multi-line Bookmarks

Post by Sasha - Tracker Dev Team »

Hello Willy,

Added this option as well:
Capture20.PNG
Capture21.PNG
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Willy Van Nuffel
User
Posts: 2347
Joined: Wed Jan 18, 2006 12:10 pm

Re: Add Space to Multi-line Bookmarks

Post by Willy Van Nuffel »

Thanks again. The "Generate Bookmarks From Page Text"-feature is getting better and better every time.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17815
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Add Space to Multi-line Bookmarks

Post by Tracker Supp-Stefan »

:D
Post Reply