Create bookmark from underlined text

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
evdbogaard
User
Posts: 81
Joined: Mon May 26, 2008 8:52 am
Location: Amsterdam, The Netherlands

Create bookmark from underlined text

Post by evdbogaard »

I know how to create bookmarks from bold and/or italic text using the "From Page Text" button. That works because (as I understand it) bold and italic are separate fonts.

However, I frequently encounter pdf's in witch sub headers are underlined plain text and underlined text is not a separate font. So selecting the underlined text as source for "From Page Text" results in all text copied into the bookmarks.

Is there a way to just get the underlined text into the bookmarks (i.e. other than manually)?
Any tips are welcome.
Ed van den Bogaard
Happy PDF-XChange PRO user since 2008 (version 4)
User avatar
Paul - Tracker Supp
Site Admin
Posts: 6831
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: Create bookmark from underlined text

Post by Paul - Tracker Supp »

Hi, evdbogaard

I guess it depends what those underlines really are. Can we see a sample?

please and thanks.

Kind regards,
Paul - Tracker Supp
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
evdbogaard
User
Posts: 81
Joined: Mon May 26, 2008 8:52 am
Location: Amsterdam, The Netherlands

Re: Create bookmark from underlined text

Post by evdbogaard »

This is an example of such a pdf (it's in Dutch. but I guess that's not relevant for the question how to bookmark the underlined parts).
It can also be downloaded from https://uitspraken.rechtspraak.nl/#!/details?id=ECLI:NL:RBAMS:2022:6807 (button 'Uitspraak delen').

Regards,
Ed
ECLI_NL_RBAMS_2022_6807.pdf
(133.41 KiB) Downloaded 15 times
Ed van den Bogaard
Happy PDF-XChange PRO user since 2008 (version 4)
Willy Van Nuffel
User
Posts: 2347
Joined: Wed Jan 18, 2006 12:10 pm

Re: Create bookmark from underlined text

Post by Willy Van Nuffel »

Hi,

It seems like the underlines in the pdf are shapes and even if it were real underscores I doubt if it would be possible to automatically generate bookmarks from it.

But, what I see in the pdf is that the underscored titles do contain a question mark at the end.
In case there are no immediate other sentences with question marks, you could use this opportunity to generate bookmarks from sentences containing a question mark.

Does that help?

Kind regards.

Willy
>
PDF-XChange Editor - Bookmark Generation - Text Matching Options.png
>
PDF-XChange Editor - Bookmarks.png
PDF-XChange Editor - Bookmarks.png (8.3 KiB) Viewed 489 times
User avatar
Paul - Tracker Supp
Site Admin
Posts: 6831
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: Create bookmark from underlined text

Post by Paul - Tracker Supp »

Hi, guys

thanks for the suggestion Willy. You are correct that the underlines in this PDF is a shape object and cannot be used in the manner desired.
The question mark observation is a good one and should work.

Kind regards,
Paul - Tracker Supp
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
evdbogaard
User
Posts: 81
Joined: Mon May 26, 2008 8:52 am
Location: Amsterdam, The Netherlands

Re: Create bookmark from underlined text

Post by evdbogaard »

That’s a brilliant idea Willy, thanks!

I definitely should learn a bit more on regular expressions.

Cheers,
Ed
Ed van den Bogaard
Happy PDF-XChange PRO user since 2008 (version 4)
Willy Van Nuffel
User
Posts: 2347
Joined: Wed Jan 18, 2006 12:10 pm

Re: Create bookmark from underlined text

Post by Willy Van Nuffel »

Thanks for your reply @Ed.

Additional information in the PDF-XChange Editor V9 online manual:
- https://help.pdf-xchange.com/pdfxe ... xt_ed.html

with an external link to:
- http://www.cplusplus.com/reference/regex/ECMAScript

Kind regards.

Willy
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17823
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Create bookmark from underlined text

Post by Tracker Supp-Stefan »

:)
Post Reply