Hi, I'm trying to use headless Chromium to generate some PDFs that I intend to superimpose on other PDFs.
The composition operation is done with:
pdftk base.pdf stamp top.pdf output output.pdf
And top.pdf is what I generate with Chromium Save to PDF. The page is dead simple:
<html><body>Sample Content</body></html>
My problem is that top.pdf has a white rectangle in the background that covers the entire page. This can be seen
by opening the PDF with Inkscape and ungrouping all objects, or by looking inside the PDF:
$ qpdf --qdf --stream-data=uncompress --object-streams=disable top.pdf top-uncompressed.pdf
And inside:
....
%% Contents for page 1
%% Original object ID: 2 0
5 0 obj
<<
/Length 6 0 R
>>
stream
1 0 0 -1 0 792 cm
q
0 0 612 792 re
W* n
q
.75 0 0 .75 0 0 cm
1 1 1 RG 1 1 1 rg
/G0 gs
0 0 816 1056 re
f
...
The last four lines set fill color to white (1 1 1 rg), border color to white (1 1 1 RG), define a rectangle (0 0 816 1056 re) and fill it (f)
I've tried a lot of CSS in my page (background-color: transparent, background-image: none, etc). But nothing has any effect on this
white rectangle.
Any pointers?