Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello, nice module.
So, I'm having anissue with images. I'm placing an image (from an image field) and sizing it. But when the image is on the PDF it pushes everything down to a second page and doesn't show the PDF background I have set. So page one is blank with the template background, and page two has all my fields without a template background, just white. Any suggestions on why this is happening?
I have tried to resize the image before upload with the same result. When I turn off image, it goes back to normal.
Thanks for your help.
Comment | File | Size | Author |
---|---|---|---|
#1 | product_tag_card_large.pdf | 456.68 KB | jberg1 |
Comments
Comment #1
jberg1 CreditAttribution: jberg1 commentedUpdate.
The only way I can get the image to overlay the background is set its position to be relative to header/footer. Then it floats over the background. However a new problem arises that a second page is output with the image on there twice slightly offset and overlapping each other.
So close. Thanks for any help.
Comment #2
jberg1 CreditAttribution: jberg1 commentedI think I solved my own issue. Turned out to be the image size that was the problem (even though I set width on each field - using PDF Unformatted). So I am using ImageStyle in Drupal7 (formally imageCache) to create a smaller image that fits. That fixed it. Now I can place it relative to page or whatever and it overlaps the background fine.
Nice plugin but takes some work to perfect it. I saw future updates include a better UI. I'm all for that! And maybe some expanded capability of styling (line-height or leading needs work). I can't get any of the Render settings to work, even the example given fails to work.
Hopefully my self help session helps someone else.
Comment #3
jberg1 CreditAttribution: jberg1 commentedclosed
Comment #4
Rustan CreditAttribution: Rustan commentedAnyone having issues with image, this seems like the best solution.