processwire / site-invoices

A full invoicing application developed in ProcessWire. Enables you to create invoices, record payments to them, email invoices to clients, print invoices, and more.
18 stars 1 forks source link

Possible to Print to PDF with same UIkit color as front-end ? #2

Open protrolium opened 1 month ago

protrolium commented 1 month ago

Hi,

I am really enjoying this site profile, thank you for publishing it. However it seems Printing to PDF in color is not possible. Am I missing something ? I would like to match the UIkit styling that I have customized in the invoice.php template.

ryancramerdesign commented 1 month ago

Glad you are enjoying the site profile. The colors remain when I print to PDF here. Could it be related to your printer or PDF settings in your browser?

On Sun, May 26, 2024, 2:56 AM Ꮹανiη Ꮐaмвoα @.***> wrote:

Hi,

I am really enjoying this site profile, thank you for publishing it. However it seems Printing to PDF in color is not possible. Am I missing something ? I would like to match the UIkit styling that I have customized in the invoice.php template.

— Reply to this email directly, view it on GitHub https://github.com/processwire/site-invoices/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACQEUBH3TRUBK3Y43CFG4DZEGBQPAVCNFSM6AAAAABIJRM4LWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGMYTONJSGE3DEOI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

protrolium commented 1 month ago

Interesting. I'll take a look. I am noticing that hyperlinks tags aren't being added to the PDF either ?

ryancramerdesign commented 1 month ago

This site profile isn't actually involved with printing or generation PDFs at all, as that's a function of your browser or OS. The only printer-specific code we have in the profile is a @media print CSS rule to hide the top navigation. I did just try printing to a PDF here, but it did keep the hyperlinks. I'm testing on a Mac running the latest Chrome version. I searched for PDF related settings in the OS settings and browser settings, but can't find any, so maybe it's just a matter of software and versions. What platform and browser are you using?

On Tue, May 28, 2024 at 3:21 AM Ꮹανiη Ꮐaмвoα @.***> wrote:

Interesting. I'll take a look. I am noticing that hyperlinks tags aren't being added to the PDF either ?

— Reply to this email directly, view it on GitHub https://github.com/processwire/site-invoices/issues/2#issuecomment-2134515159, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACQEUBIY6KE7STLTU6I3QDZEQWAHAVCNFSM6AAAAABIJRM4LWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZUGUYTKMJVHE . You are receiving this because you commented.Message ID: @.***>

protrolium commented 1 month ago

Understood + thank you @ryancramerdesign. I'll try Chrome. OS: macOS Ventura 13.6.1 Browser: Vivaldi version 6.7.3329.35