Skip to content

How to control image size? #40

@Thynix

Description

@Thynix

I'm trying to build a PDF that lines up with the template for these printable labels, but I'm stuck on not understanding how to change the size of an image. I have yet to find anything that controls it.

I've pushed my code to my repository, and commented out my attempts to change the size that didn't do anything:

specifying content width/height
resizing the image
specifying image width/height

Any ideas on what I'm missing? I've attached the PDF this code generates. With the dependencies installed, you can generate this PDF using

python use_pdfme.py example.yaml

document.pdf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions