PDF Printing
Marty Knapp
martyknappster at gmail.com
Tue Oct 4 12:38:29 EDT 2022
It could be a corrupted font cache - I’ve found that can cause weird behavior as you’re describing. If you’re on a Mac, do a “safe reboot” (start up with the shift key pressed) and after it boots up, do a normal reboot. That will delete the current font caches and then rebuild them from scratch. It’s little harder to fix on Windows - if that is the case you might Google that.
Worth a try anyway.
Marty
> On Oct 4, 2022, at 8:20 AM, Dan Friedman via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> I am getting different results using "open printing to pdf" vs standard printing to a printer. I have a card with a single field on it with some formatted text in it. If I print the card to a printer using "open printing with dialog" it all looks perfect (even if I choose to save it to PDF in the print dialog). But, if I use the "open printing to pdf" method, it get wrong fonts and inconsistent tab spacings. Here is the EXACT code I am using:
>
> on mouseUp currSName
> put (the hilite of btn "printAsPDF" of stack "ReportOptions") into printAsPDF
>
> if printAsPDF then
> ask file "Save As PDF:" with (currSName & ".pdf")
> put it into pdfPath
> open printing to pdf pdfPath
> else
> open printing with dialog
> end if
>
> if the result is "Cancel" then
> exit mouseUp
> end if
>
> print card 1 of stack "GB_PReport"
> close printing
> end mouseUp
>
> Here are examples of the printouts (the PDFs):
> Print to PDF - https://www.clearvisiontech.com/WORKING/PrintToPDF1.pdf
> Print to Printer - https://www.clearvisiontech.com/WORKING/PrintToPDF2.pdf
>
> Any thoughts or ideas?
>
> LC 9.6.8
More information about the use-livecode
mailing list