File: README

package info (click to toggle)
xhtml2pdf 0.2.17%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,412 kB
  • sloc: python: 12,740; makefile: 247; xml: 24
file content (29 lines) | stat: -rw-r--r-- 1,007 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
INSTALLATION
-------------

You need ImageMagic installed.    apt install imagemagick

Check this if imagemagick policy prevent PDF generation
https://stackoverflow.com/questions/52998331/imagemagick-security-policy-pdf-blocking-conversion

FONT DIFFERENCES
----------------

Due to slight differences in PDF -> PNG conversion on different platforms,
the "difference images" may show a lot of highlighted pixels, especially on
rendered text.

To get around this problem, first make sure that the differences reported
by the tool are really only marginal font-rendering shifts. Then create
your own set of reference images with the following command:

$ ./testrender.py --create-reference <REFDIR>

This will create a new set of reference PNGs rendered with your font engine
to the directory <REFDIR>. ATTENTION: the directory you specify here will be
deleted and recreated!

After the images haven been created, you can use your reference dir for
your test renderings:

$ ./testrender.py --ref-dir <REFDIR>