From 4572fca31fe16e3ca2a9cd7903e654fd51318a1f Mon Sep 17 00:00:00 2001 From: Kellermorph Date: Thu, 20 Aug 2026 13:30:22 +0200 Subject: [PATCH] fix2 --- sources/pdf_links.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sources/pdf_links.cpp b/sources/pdf_links.cpp index 810aa7284..c5260846a 100644 --- a/sources/pdf_links.cpp +++ b/sources/pdf_links.cpp @@ -502,7 +502,11 @@ void convertComponentInfoAnnotations(const QString &pdfPath, int subTypePos = (subTypeInBody != -1 && subTypeInBody < aDictOpen) ? out.size() - (aDictOpen - subTypeInBody) : -1; if (subTypePos != -1) - out.replace(subTypePos, 14, "/Subtype /Text"); + // Acrobat draws its own sticky-note icon for /Subtype /Text + // whatever /AP says (verified on Reader 5.0). /Square with no + // /C and no /IC draws nothing anywhere, and is still a markup + // annotation, so the /Contents popup is unaffected. + out.replace(subTypePos, 14, "/Subtype /Square"); // Encode as UTF-16BE hex with BOM for proper Unicode support (Umlauten etc.). // PDF spec: hex strings starting with FE FF are interpreted as UTF-16BE.