Print Page generate PDF

0
I am trying to create a print page. On this page is a scrolling div. So a list view. This list view shows me a picture of all entities. Now I want to generate a PDF, where each image is on a separate A4 page. Does anyone have a solution for this? I am not so familiar with Javascript
asked
3 answers
1

Hi Dominik,

My apologies for the delayed response. I was a few weeks off due to birth leave. Did you manage to fix your print already?

Some additional things which may help you; Chrome has the option to emulate the print CSS which can help you style the page directly. This can significantly speed up the development.

By using @media print {} you can apply print specific styling. You can use this to hide certain buttons, for example. https://www.tutorialspoint.com/css/css_printing.htm

 

answered
0

Hi Dominik,

 

In order to keep my answer short and to the point; did you have a look at the page-break logic in CSS? Potentially, this can help you to reach your goal.

 

https://stackoverflow.com/questions/1664049/can-i-force-a-page-break-in-html-printing

https://www.w3schools.com/cssref/pr_print_pageba.php

 

answered
0

Yeah i saw this already.
But i am really not sure how to solve this problem.
For Example, i have this page
But i am not able to print it like i would.

answered