Bug#1067612: libpoppler102: Font specs have no affect and rendering of PDF annotations are radically different as compared to Adobe Acrobat
Manny
debbug.libpoppler102 at sideload.33mail.com
Sun Mar 24 16:19:28 GMT 2024
Package: libpoppler102
Version: 20.09.0-3.1+deb11u1
Severity: normal
Tags: upstream
X-Debbugs-Cc: debbug.libpoppler102 at sideload.33mail.com
The texlive package includes the LaTeX package “pdfcomment” which
enables LaTeX documents to include PDF annotations and markups. Some
of the annotations render wildly different in Adobe Acrobat Pro 7.0
from Poppler.
All annotation font specifications are ineffective, so all annotations
are trapped on a single font. This is some sample LaTeX code:
===8<----------------------------------------
\documentclass{scrartcl}
\usepackage{pdfcomment}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{microtype}
\usepackage[svgnames,rgb]{xcolor}
\usepackage[absolute]{textpos}
\usepackage{amssymb,amsmath,array,bm}
\usepackage{courier}
\usepackage{calligra,mathptmx,helvet,concmath}
\usepackage{times}
\usepackage{fontspec} % used to access system fonts like Lucida Fax
\begin{document}
\defineavatar{standard}{height=10mm,width=15cm,type=freetext,color=white,fontsize=20pt,fontcolor=blue}%,voffset=-4.8cm,hoffset=-3.2cm}%
\noindent%
Fonts from the pdfcomment example document:\\[10mm]
\pdffreetextcomment[avatar=standard]{This font is Helvetica (the default)}\\[6mm]
\pdffreetextcomment[avatar=standard,font=LucidaConsole]{This font is LucidaConsole}\\[6mm]
\pdffreetextcomment[avatar=standard,font=Georgia]{This font is Georgia}\\[6mm]
\pdffreetextcomment[avatar=standard,font=PalatinoLinotype]{This font is PalatinoLinotype}\\[6mm]
Fonts considered among the ``14 standard fonts'':\\[10mm]
\pdffreetextcomment[avatar=standard,font=TiRo]{This font is Times-Roman (TiRo)}\\[6mm]
\pdffreetextcomment[avatar=standard,font=Helv]{This font is Helvetica (Helv)}\\[6mm]
\pdffreetextcomment[avatar=standard,font=Cour]{This font is Courier (Cour)}\\[6mm]
\pdffreetextcomment[avatar=standard,font=ZaDb]{This font is ZapfDingbats (ZaDb)}\\[6mm]
\pdffreetextcomment[avatar=standard,font=Symb]{This font is Symbol (Symb)}\\[6mm]
Ad-hoc selection:\\[10mm]
\pdffreetextcomment[avatar=standard,font=lmodern]{This font is Latin Modern}\\[6mm]
\pdffreetextcomment[avatar=standard,font=textcomp]{This font is textcomp}\\[6mm]
\pdffreetextcomment[avatar=standard,font=bogus]{This font is bogus (non-existent yet accepted!)}\\[6mm]
\pdffreetextcomment[avatar=standard,font={Lucida Fax}]{This font is Lucida Fax from fontspec}\\[6mm]
\pdffreetextcomment[avatar=standard,font=calligra]{This font is Calligra}\\[6mm]
\end{document}
===8<----------------------------------------
Lualatex compiles that into a PDF which renders correctly in Adobe
Acrobat Pro 7.0. But in xpdf, evince, and okular, all the fonts look
exactly the same, like Helvetica.
I assume developers have access to free software like latex to produce
the PDF from the above code, but I do not assume people have access to
Adobe Acrobat, so a sample of the Acrobat rendering is attached as
annotation_font_samples_Acro.djvu. It was produced using Acrobat’s
“save as” → TIFF → tifftopnm → c44.
Note that there is a big arrow running across the page in that Acrobat
samples. That is either defect in the pdfcomment package or in Adobe
Acrobat. Poppler devs should ignore the arrow.
The annotation pdfcomment LaTeX package includes this file:
/usr/share/doc/texlive-doc/latex/pdfcomment/example.pdf
Objects that were specified in the code as “cloudy” have a cloud shape
in Acrobat. Those same objects are just a rectangular box in
Poppler. The sample of the Acrobat rendering is attached as
example_Acro.djvu
This report covers 2 bugs:
* font specs ineffective
* rectangle shapes that apparently should be cloud shapes
-- System Information:
Debian Release: 11.5
APT prefers oldstable-updates
APT policy: (990, 'oldstable-updates'), (990, 'oldstable-security'), (990, 'testing'), (990, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.10.0-19-amd64 (SMP w/2 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages libpoppler102 depends on:
ii libc6 2.31-13+deb11u5
ii libfontconfig1 2.13.1-4.2
ii libfreetype6 2.10.4+dfsg-1+deb11u1
ii libjpeg62-turbo 1:2.0.6-4
ii liblcms2-2 2.12~rc1-2
ii libnspr4 2:4.29-1
ii libnss3 2:3.61-1+deb11u2
ii libopenjp2-7 2.4.0-3
ii libpng16-16 1.6.37-3
ii libstdc++6 10.2.1-6
ii libtiff5 4.2.0-1+deb11u1
ii zlib1g 1:1.2.11.dfsg-2+deb11u2
Versions of packages libpoppler102 recommends:
ii poppler-data 0.4.10-1
libpoppler102 suggests no packages.
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: example_Acro.djvu
Type: image/vnd.djvu
Size: 403995 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-freedesktop-maintainers/attachments/20240324/505dbbd8/attachment-0002.djvu>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: annotation_font_samples_Acro.djvu
Type: image/vnd.djvu
Size: 417285 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-freedesktop-maintainers/attachments/20240324/505dbbd8/attachment-0003.djvu>
More information about the Pkg-freedesktop-maintainers
mailing list