You can apply scaling only if you make for example the font size in the PDF itself smaller. You cannot control this from the print dialog. Due to the fact that it’s a PDF. I tried to explain this in my previous post (here)
I’ll try again:
- Download this PDF from Adobe.com. Open the print dialog and you’ll see the same behavior. This is because in a PDF file, a single page is a single page.
- If you do the same with an HTML file (for example this page with Shakespeare’s MacBeth), you’ll see a different behavior, because it’s a single page (or rather: no specific page breaks have been defined) and the browser applies the page breaks for you.
If you want to be able to scale the document in the print dialog, you’ll need to use a plugin that outputs to HTML instead of PDF.
If you want to change the font size you can do so using the following code snippet:
add_action( 'wpo_wcpdf_custom_styles', function ( $document_type, $document ) {
?>
body { font-size: 8pt !important; }
<?php
}, 10, 2 );
If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters
-
This reply was modified 3 years ago by Ewout. Reason: added example CSS to change the font size