-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow / Enable presentation hints #38
Comments
I don't see the Usually, setting the image via |
Hello, thanks for the feedback. My html file had the width setting on the images, but when rendering the PDF, it would not work (images were the original size, and out of bounds). So I found this setting, and changed my "renders.py" file. So I'm good with my edit to the code, only have to remember this if I upgrade django-renderpdf. Thanks again. |
So without Lemme experiment with this a bit, but it seems like an addition that would make sense. Though I think I have some logos in some documents where I specify the size and it works, so want to double check what's up there. |
Hello,
Thanks for the code, it allowed me to very quickly render PDF in Django.
One thing I could not do with your latest release is to resize images in a PDF. I looked around, and found the presentation_hints parameter that can be passed in the "HTML" or "write_pdf". I updated the last lines of renders.py file from
to
And now I can use width / height to resize the images that are included in my template.
I'll leave it to you to update or add another setting somewhere to allow this.
Thanks again.
The text was updated successfully, but these errors were encountered: