mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-08-21 15:44:14 +02:00
fix2
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user