Lesezeichen automatisch erstellen

Community Beginner ,
May 25, 2021 May 25, 2021

Copy link to clipboard

Copied

Hallo. Arbeite mit Adobe Acrobat Pro 2017 und möchte in einem Dokument automatisch Lesezeichen erstellen. Auf jeder Seite gibt es eine Zahlen-Buchstabenkombination (Sozialversicherungsnummer) die immer an der gleichen Stelle auf der Seite steht. Die Kombination ist aber jedes Mal anders, folgt aber im dem Muster "8 Zahlen + 1 Buchstabe + 3 Zahlen". Gerne würde ich aus dieser Kombi jeweils ein Lesezeichen pro Seite erstellen. Hat jemand eine Idee?

Größe der Schriftart und Schriftart selbst fallen für die Suche raus, weil die die noch öfter auf der Seite vorbeikommen ...

Danke für die Hilfe! 🙂

TOPICS
Edit and convert PDFs

Views

1.3K

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct answers

Advocate , May 27, 2021 May 27, 2021

Hello Frank,

There's no need to create bookmarks if the final goal is to split the pages into uniquely named pdfs.

Give the below code a try that extracts the pages with unique names, it worked for me on your test file.

 

 

  for (var p = 0; p < this.numPages; p++) {

     for (var n = 0; n < this.getPageNumWords(p); n++) {
     cWord = this.getPageNthWord(p, n, true);
    
     if (cWord.match(/\b\d{8}\w{1}\d{3}\b/)) {
        var pdf_Name = cWord;
     }  
 }
    var newFilePath = this.path.replace
...

Likes

Translate

Translate
Advocate , May 27, 2021 May 27, 2021

Hi Frank,

You can run the code in a Action Wizard action.

 

1. Select the Action Wizard, then "New Action

Screen Shot 2021-05-27 at 5.24.36 PM.png

2. In the Create New Action window on the left side go down to More tools > Execute Javascript add the tool to the right side

Screen Shot 2021-05-27 at 5.25.56 PM.png

3. Click on Execute Javascript > specify settings, in the window that opens copy and paste in the code and save and name the action.

Be sure to uncheck the Prompt User check box.

Screen Shot 2021-05-27 at 5.26.28 PM.png

The newly created action will appear under the Action Wizard in the action list. You can then ru

...

Likes

Translate

Translate
Advocate ,
May 25, 2021 May 25, 2021

Copy link to clipboard

Copied

Hello,

 

Do you have a sample\dummy file you can post for testing?

 

Regards,

Mike

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 26, 2021 May 26, 2021

Copy link to clipboard

Copied

Hello.

Attached is a sample file.

I have colored the number to be used as a bookmark per page by example.

Same place on each page. It is important that the bookmark is the same as the number. At the end, I need one file per page with the number as the file name.

Thanks + Regards.

Frank

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
May 27, 2021 May 27, 2021

Copy link to clipboard

Copied

Hello Frank,

There's no need to create bookmarks if the final goal is to split the pages into uniquely named pdfs.

Give the below code a try that extracts the pages with unique names, it worked for me on your test file.

 

 

  for (var p = 0; p < this.numPages; p++) {

     for (var n = 0; n < this.getPageNumWords(p); n++) {
     cWord = this.getPageNthWord(p, n, true);
    
     if (cWord.match(/\b\d{8}\w{1}\d{3}\b/)) {
        var pdf_Name = cWord;
     }  
 }
    var newFilePath = this.path.replace(this.documentFileName, "");
    this.extractPages({ nStart: p, cPath: newFilePath + pdf_Name + ".pdf"});   
       
}

 

Regards,

Mike

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 27, 2021 May 27, 2021

Copy link to clipboard

Copied

Hello Mike,

thank you for your help.

Unfortunately, I don't know where to enter the code?! Can you explain that to me?

Regards.

Frank

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
May 27, 2021 May 27, 2021

Copy link to clipboard

Copied

Hi Frank,

You can run the code in a Action Wizard action.

 

1. Select the Action Wizard, then "New Action

Screen Shot 2021-05-27 at 5.24.36 PM.png

2. In the Create New Action window on the left side go down to More tools > Execute Javascript add the tool to the right side

Screen Shot 2021-05-27 at 5.25.56 PM.png

3. Click on Execute Javascript > specify settings, in the window that opens copy and paste in the code and save and name the action.

Be sure to uncheck the Prompt User check box.

Screen Shot 2021-05-27 at 5.26.28 PM.png

The newly created action will appear under the Action Wizard in the action list. You can then run the action on the opened file and it will extract each page uniquely named.

 

Regards,

Mike

 

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 28, 2021 May 28, 2021

Copy link to clipboard

Copied

Mike ... you made may day! 🙂

This is fantastic! That's exactly what I wanted und what I need! Thank you so much!

Regards, Frank

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 25, 2022 Apr 25, 2022

Copy link to clipboard

Copied

Hallo zusammen,

 

ich habe ein ähnliches Problem. Nur ich brauche Lesezeichen in einer Datei mit Text hinzuzufügen. Es handelt sich um mehrere Tausend Gesetzestext. Die Überschriften der Paragrafen müssten dann als Lesezeichen erkannt werden. Könntet ihr mir bitte helfen?  

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Apr 25, 2022 Apr 25, 2022

Copy link to clipboard

Copied

Use the plugin AutoBookmark from Evermap.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 25, 2022 Apr 25, 2022

Copy link to clipboard

Copied

LATEST

Vielen Dank für die Rückmeldung. Ich habe mittlerweile FlexiPDF 2022 ausprobiert - zwar mit einigen Fehlern aber es geht 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines