Skip to content
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

Adding an image to the full size of a pdf page #315

Open
happydroid opened this issue Apr 23, 2024 · 0 comments
Open

Adding an image to the full size of a pdf page #315

happydroid opened this issue Apr 23, 2024 · 0 comments

Comments

@happydroid
Copy link

happydroid commented Apr 23, 2024

I have a problem adding an image to the entire size of a pdf page. I need to make a report in which the first page will be a special image, in a4 format and horizontal orientation (like the entire report).

And no matter what I did, what advice I tried from the Internet (stackoverflow, chatgpt), I was never able to do this simple operation.

I made a project on Github https://github.com/happydroid/pdf_full_page that generates a simplified report consisting of two pages - the first page with an image and the second page with some data. As you can see, trying to render the image in landscape orientation creates three whole pages:
image

As you can see, the page cannot be displayed completely, due to some indentation on the left and possibly on other sides, and I have turned off any indentation(paddings) in the styles for this page.
In the test project, I added the simplest example of rendering the project; I did not add all kinds of non-working methods.

Do you have any ideas on how this can be implemented using your library? Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants