[pdftex] Broken PDF output from WEB and CWEB input
Ross Moore
ross.moore at mq.edu.au
Sat Feb 13 20:49:46 CET 2021
Hello Andreas.
You are wanting valid PDF/A output, right?
This format didn't exist when pdfTeX was designed and developed,
but that doesn't mean it cannot be achieved using appropriate macros.
l've been doing it for years, using the pdfx LaTeX package,
which relies on features in hyperref and some other packages.
(Indeed I'm now producing fully tagged PDF/UA and PDF/A-3a documents.)
The dependence on LaTeX itself should not be essential, but
it's certainly convenient to not have to reinvent the wheel for many things.
Study the coding within the pdfx package, to find how to overcome all the issues
that you mentioned in your posting.
See also videos of talks that I've given at TUG meetings.
Hope this helps.
Ross
On 13/02/2021, at 21:51, "Andreas Scherer" <andreas_tex at freenet.de<mailto:andreas_tex at freenet.de>> wrote:
Am 11.02.21 um 12:05 schrieb Andreas Scherer:
> Case closed!
Well, not quite.
$ weave weave.web; pdftex weave.tex
produces 'weave.pdf' that gives tons of messages à la
{Path|Text} object uses {Gray|RGB} based color space.
on https://freepdfonline.com/verifypdfa/<https://protect-au.mimecast.com/s/KneTC1WLjws5Z9jPsXkfRu?domain=freepdfonline.com>
Asking Auntie Google about this leads to this thread:
https://tex.stackexchange.com/questions/61217/latex-color-and-icc-color-profile<https://protect-au.mimecast.com/s/Bh8eC2xMRkUOm9xBc9eNOB?domain=tex.stackexchange.com>
Downloading ICC profile 'sRGB2014.icc' from
http://www.color.org/srgbprofiles.xalter#v2<https://protect-au.mimecast.com/s/a38NC3QNl1S04E8yfvGl81?domain=color.org>
and adding the relevant PDF code in '\ifpdftex' purges _all_ of these
color warnings. What's left are these 'Preflight Results':
Document Results
XRef cannot be an object stream (not a PDF 1.4 compatible feature)
Metadata key missing in root catalog
MarkInfo dictionary is not present
Structure Tree Root missing.
Page 1 Results:
Link Annotation's F key is missing
Unicode info not available for font -- tons of these on every page.
See the attached report file for details.
Possible plans for C/WEB:
(1) Refine the layout of the newly added code in 'pwebmac.tex'
(2) Create similar code for XeTeX/dvipdfm
(3) Copy this code in 'cwebmac.tex' and 'pdfctwimac.tex'.
Current experiments are in branch
https://github.com/ascherer/web/tree/pdf-icc-color-profiles
Help would be appreciated. TIA!
-- Andreas
<weave-pdftex-report-sRGB.pdf>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/pdftex/attachments/20210213/72bab4d2/attachment.html>
More information about the pdftex
mailing list.