Hallo plc-user,
kurze Klarstellung: Die Querverweis-Hyperlinks im PDF-Export stammen nicht von mir, sondern von ispyisail (PR #490, schließt Issue #417 „Internal links in PDF export"). Danke an ihn dafür!
Zum eigentlichen Problem: Die internen Links werden in zwei Schritten erzeugt. Zuerst wird für jeden Querverweis ein file://...#page=N-Link geschrieben, danach wandelt eine Nachbearbeitung diese file://-URIs direkt in den PDF-Bytes in interne /GoTo-Sprungziele um. Wenn das klappt, sieht man am Ende gar keine file://-Links mehr.
Dass es bei einem neuen Testfile funktioniert, beim bestehenden Plan aber nicht, deutet auf einen Sonderfall in dieser Nachbearbeitung hin: Sie sucht im PDF nach der ersten Fundstelle von /Type /Pages, um die Seitenliste zu finden. Enthält der bestehende Plan eingebettete Bilder (Logo im Schriftfeld, Hintergrundbild o.ä.), könnte deren Binärinhalt zufällig diese Zeichenfolge enthalten und die Erkennung durcheinanderbringen — die Umwandlung würde dann still übersprungen, und die ursprünglichen file://-Links blieben stehen.
Um das einzugrenzen, ohne dass du die Datei posten musst:
Enthält dein Plan eingebettete Bilder (Logo, Hintergrund, Bild in einem Textfeld/Schriftfeld)?
Testweise: Plan duplizieren, alle eingebetteten Bilder entfernen, erneut als PDF exportieren — funktionieren die Links dann?
Wie viele Seiten/Pläne hat das Projekt ungefähr?
Falls sich das bestätigt, ist das ein echter Bug in der Nachbearbeitung, den wir fixen sollten.
Gruß
English:
Hallo plc-user
Quick correction: the cross-reference hyperlinks in the PDF export weren't written by me — that's ispyisail's work (PR #490, closing issue #417 "Internal links in PDF export"). Credit where it's due!
On the actual issue: internal links are produced in two steps. First, each cross-reference gets a file://...#page=N link written out; then a post-processing pass rewrites those file:// URIs directly in the PDF bytes into internal /GoTo destinations. When that succeeds, you shouldn't see any file:// links in the final PDF at all.
The fact that it works on a fresh test file but not on your existing plan points to an edge case in that post-processing step: it locates the page list by searching for the first occurrence of /Type /Pages in the raw PDF bytes. If your existing plan has embedded images (a logo in the title block, a background image, etc.), their binary content could accidentally contain that same byte sequence and throw off the detection — the conversion would then silently be skipped, leaving the original file:// links in place.
To help narrow this down without needing the file itself:
Does your plan contain any embedded images (logo, background, image in a text/title field)?
Quick test: duplicate the plan, remove any embedded images, re-export to PDF — do the links become internal then?
Roughly how many pages/folios does the project have?
If that's confirmed, it's a real bug in the post-processing step that should get fixed.
Best regards,
Laurent
@kellermorph no I don't speak german.
"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."Questions regarding QET belong in this forum and will NOT be answered via PM! – Les questions concernant QET doivent être posées sur ce forum et ne seront pas traitées par MP !