My goal is to create a list of greeting cards, each printed to a specific size (A4 folded down the longer edge), using HTML and CSS. I want the cards to be rotated 90° on the page. Ideally, I'd like to print the list without viewing the HTML and bypassing the print dialog, only showing a modal confirmation dialog after printing for user input.
My questions are as follows:
If I use divs for each card, do I simply rotate them in the CSS and add page breaks to define new pages for printing? I'm struggling with the CSS aspect, so any recommendations for helpful resources would be appreciated.
Do I need to specify the page size, or will the printer automatically adjust if the correct paper size is loaded?
How can I print without the browser's print dialog? (This question has been answered)
How can I determine when the printing job has finished?
Would it be more beneficial to utilize a PDF library for this task?