Closed bothorsen closed 2 weeks ago
Can you give me the PDF / image? I'm currently rewriting the entire library on the version2
branch, so it's kind of useless to fix this bug now in the old version.
add_to_layer
only adds a /Do {image_id}
command to the PDF layer stream, where the image ID is registered on the pages /Resource
dictionary. It would be best to solve problems now.
Duplicate of https://github.com/fschutt/printpdf/issues/119
Sorry for the late response. The problem is indeed that the image was semi transparent. I changed my image to one that doesn't have any transparency, and then it works.
Sorry for the duplicate.
I'm trying to add a logo file to my pdf, but can't seem to make it work. As soon as I add the add_to_layer() call, the generated PDF is just empty. This is the code I'm trying:
If I comment out the add_to_layer call, then I get my PDF with all the text added. But when it's not commented out, I just get a white PDF.
I'm sorry to report this as a bug if it's a problem in my code. But it's quite hard to find examples of how to add images to the pdf online.