Generate bookmarks from text does not seem to work

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
Bridger
User
Posts: 3
Joined: Sun Jul 04, 2021 2:42 pm

Generate bookmarks from text does not seem to work

Post by Bridger »

I am trying to generate bookmarks from my section headings, I have the right font, size and color and yet nothing gets generated. Also the get style from selected text is grayed out, so can't use that. Any help would be appreciated,
Thank you
generate bookmarks.jpg
generate bookmarks.jpg
Willy Van Nuffel
User
Posts: 2347
Joined: Wed Jan 18, 2006 12:10 pm

Re: Generate bookmarks from text does not seem to work

Post by Willy Van Nuffel »

Hi,

Are you sure that it goes about real text? Can you edit the text? Maybe it goes about text with OCR.

Can we have an example page (PDF) that does not work at your side?

Regards.

Willy
User avatar
PHK
User
Posts: 897
Joined: Tue Nov 24, 2020 4:02 pm

Re: Generate bookmarks from text does not seem to work

Post by PHK »

Bridger, would you mind posting a screenshot of the "Text Matching Options" box that would have popped up when you selected the "Add" box after you selected the "From Page Text" icon? It doesn't look like you have added any text string for the function to find.
All best,

FringePhil
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8440
Joined: Wed Jan 03, 2018 6:52 pm

Re: Generate bookmarks from text does not seem to work

Post by TrackerSupp-Daniel »

Hello, Bridger

Like Willy and PHK mentioned, It would be good if you could confirm that there actually is text in the document, or send us a sample, and screenshots of your text settings.

Kind regards,
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Puffolino
User
Posts: 317
Joined: Wed Feb 09, 2011 1:06 pm

Re: Generate bookmarks from text does not seem to work

Post by Puffolino »

Some of my books seem to have additional empty text boxes which are confusing the "Bookmark Generator"...

Enclosed an example which shows the used regular expression as well as the resulting bookmarks...

Bookmarks.pdf
(64.44 KiB) Downloaded 47 times


BTW: "Get Style from selected Text" does not work with selected text in editing mode but only when using the hand tool. :wink:
User avatar
Ovg
User
Posts: 461
Joined: Tue Sep 05, 2017 4:56 pm

Re: Generate bookmarks from text does not seem to work

Post by Ovg »

Wouldn't be enough

Code: Select all

^(?:\d+\.?)+.+
:?:
It's impossible to lead us astray for we don't care even to choose the way.
PDF-XChange PRO, 10.1.1 (Build 381) / W7 SP1 x64
Puffolino
User
Posts: 317
Joined: Wed Feb 09, 2011 1:06 pm

Re: Generate bookmarks from text does not seem to work

Post by Puffolino »

Ovg wrote: Sat Dec 11, 2021 11:37 amWouldn't be enough...
My regular expression is just the one I've used for the test file. But the created bookmarks do not include the given text, independently of the regex formula.
User avatar
Ovg
User
Posts: 461
Joined: Tue Sep 05, 2017 4:56 pm

Re: Generate bookmarks from text does not seem to work

Post by Ovg »

What is wrong with bookmarks in this file?
Attachments
Bookmarks_Test.pdf
(64.69 KiB) Downloaded 41 times
It's impossible to lead us astray for we don't care even to choose the way.
PDF-XChange PRO, 10.1.1 (Build 381) / W7 SP1 x64
User avatar
PHK
User
Posts: 897
Joined: Tue Nov 24, 2020 4:02 pm

Re: Generate bookmarks from text does not seem to work

Post by PHK »

Ovg wrote: Mon Dec 13, 2021 3:01 am What is wrong with bookmarks in this file?
I personally would prefer sub-bookmarks indented as in my test pdf attached.
Bookmarks_Test Indent.pdf
(64.7 KiB) Downloaded 51 times
All best,

FringePhil
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8440
Joined: Wed Jan 03, 2018 6:52 pm

Re: Generate bookmarks from text does not seem to work

Post by TrackerSupp-Daniel »

Hello, PHK

In order to get sub bookmarks indented below, you would only need to configure the bookmark from page text pane with a unique rule for each level before generation, like so:
image.png
This would ensure that each instance discovered would appear as a child under the respective parent above it.

Kind regards,
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
User avatar
PHK
User
Posts: 897
Joined: Tue Nov 24, 2020 4:02 pm

Re: Generate bookmarks from text does not seem to work

Post by PHK »

Yes, that's fine with me.

I was just responding to OVG's question, "what is wrong with" the Bookmarks of his attached speciman file.
All best,

FringePhil
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8440
Joined: Wed Jan 03, 2018 6:52 pm

Re: Generate bookmarks from text does not seem to work

Post by TrackerSupp-Daniel »

Hello, PHK

No worries, I appreciate the input, hopefully we can see some more details from Puffolino, or Bridger about what the problems are, because at the moment I am afraid that I am not quite understanding.

Kind regards,
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Puffolino
User
Posts: 317
Joined: Wed Feb 09, 2011 1:06 pm

Re: Generate bookmarks from text does not seem to work

Post by Puffolino »

I am not able to get summarized bookmark entries ("2 Symmetrische Chiffren") here but only seperated entries ("2" and "Symmetrische Chiffren"). I've tried a lot of different options to get a correct result but failed so far :cry:
grafik.png

Maybe there was also some confusion about my previous postings remark which was thought as a hint for the statement "style from selected text is grayed out" in the initial question of this thread.

______

Beside this, I'd like to have better editing options for the "Generate Bookmarks from Page Text" dialog.
Some ideas:
- Allow to copy text properties from a selected text in edit mode (not only for the Hand Tool)
- Copying (cloning) rules
- Moving rules in the tree (like it can be done with bookmark entries)
- Deleting multiple rules (all children)
- Allowing an option "same as parent rule" for "Tile Formatting" or alternatively add a button "Copy to all children rules"
User avatar
Paul - Tracker Supp
Site Admin
Posts: 6837
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: Generate bookmarks from text does not seem to work

Post by Paul - Tracker Supp »

Hi guys.

Well you get two tickets for this. One is a bug report. The Bookmarks creation should make a single bookmark where it is splitting into two. This ticket is RT#5902: Generate Bookmarks from text issue.

The other ticket is a Feature Request for the suggested improvements. RT#5903: Feature request :: Editor :: suggested improvements to the "Create Bookmarks from page text" Tool

We will do what we can to fix that issue where it breaks the desired line into 2 bookmarks.
We will consider the suggested improvements, without a promise of delivery. This is a commitment to seriously looking into it, not a promise it will be done.

I hope that helps.
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
Puffolino
User
Posts: 317
Joined: Wed Feb 09, 2011 1:06 pm

Re: Generate bookmarks from text does not seem to work

Post by Puffolino »

Thanks for the tickets.
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8440
Joined: Wed Jan 03, 2018 6:52 pm

Generate bookmarks from text does not seem to work

Post by TrackerSupp-Daniel »

:)
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
User avatar
Paul - Tracker Supp
Site Admin
Posts: 6837
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: Generate bookmarks from text does not seem to work

Post by Paul - Tracker Supp »

Heads up that RT#5902: Generate Bookmarks from text issue. was just set to the status "Resolved". This means it will be in the next scheduled build in about two months.
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
Post Reply