PDF/A additions
This commit is contained in:
parent
c90a0fbe88
commit
7fe6ca2ca6
17
README.md
17
README.md
@ -18,7 +18,22 @@ See the [pre-built version](build/thesis.pdf) for details
|
|||||||
4. Write the thesis.
|
4. Write the thesis.
|
||||||
5. Submit and defend the thesis.
|
5. Submit and defend the thesis.
|
||||||
|
|
||||||
PDF-A validation can be checked using the validator: https://github.com/mff-cuni-cz/cuni-thesis-validator
|
## PDF/A
|
||||||
|
|
||||||
|
With a bit of luck, you should get PDF/A right out of LaTeX.
|
||||||
|
|
||||||
|
A working PDF/A validator that can point out exact problems is here: https://github.com/mff-cuni-cz/cuni-thesis-validator
|
||||||
|
|
||||||
|
Common PDF/A problems include:
|
||||||
|
|
||||||
|
- imported PDF pictures that are not PDF/A.
|
||||||
|
- the used font does not support PDF/A (including the fonts in imported pictures). See https://martin.hoppenheit.info/blog/2018/pdfa-validation-and-inconsistent-glyph-width-information/ for a very ugly case.
|
||||||
|
|
||||||
|
Solutions:
|
||||||
|
|
||||||
|
- use `pdfa.sh` to convert PDFs to PDF/A-compatible form the "hard way" (although this does _not_ retain the PDF/A metadata mark, see comments in the script).
|
||||||
|
- read the commentary by Martin Mareš (that describes most of the common problems) here: https://mj.ucw.cz/vyuka/bc/pdfaq.html
|
||||||
|
- use `pdfa.sh` as a last resort for `thesis.pdf` if everything other fails
|
||||||
|
|
||||||
## Ideas/improvements/more examples?
|
## Ideas/improvements/more examples?
|
||||||
|
|
||||||
|
4
pdfa.sh
4
pdfa.sh
@ -13,3 +13,7 @@ gs -dPDFA=1 \
|
|||||||
-dPDFACompatibilityPolicy=3 \
|
-dPDFACompatibilityPolicy=3 \
|
||||||
-sOutputFile="pdfa-$1" \
|
-sOutputFile="pdfa-$1" \
|
||||||
"$1"
|
"$1"
|
||||||
|
|
||||||
|
# note: PDFACompatibilityPolicy=3 actually doesn't exist. A bug in ghostscript
|
||||||
|
# interprets is as something between 1 and 2, without unnecessary failing on
|
||||||
|
# various dumb errors.
|
||||||
|
Loading…
Reference in New Issue
Block a user