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! 🙂
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
...
Hi Frank,
You can run the code in a Action Wizard action.
1. Select the Action Wizard, then "New Action
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
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.
The newly created action will appear under the Action Wizard in the action list. You can then ru
...Copy link to clipboard
Copied
Hello,
Do you have a sample\dummy file you can post for testing?
Regards,
Mike
Copy link to clipboard
Copied
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
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
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
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
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.
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
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
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?
Copy link to clipboard
Copied
Use the plugin AutoBookmark from Evermap.
Copy link to clipboard
Copied
Vielen Dank für die Rückmeldung. Ich habe mittlerweile FlexiPDF 2022 ausprobiert - zwar mit einigen Fehlern aber es geht