How to Save a CSV file as a PDF File

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
trags3
Posts: 432
Joined: Wed Apr 09, 2014 1:58 am

How to Save a CSV file as a PDF File

Post by trags3 » Fri Aug 23, 2024 5:26 pm

I can't seem to get this right.
I need to save a CSV file as a PDF file.
How is this done?
Thanks in Advance!

Tom

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: How to Save a CSV file as a PDF File

Post by Klaus » Fri Aug 23, 2024 5:52 pm

Hi Tom,

you may need to put the file into a field and then -> open printing to pdf...


Best

Klaus

trags3
Posts: 432
Joined: Wed Apr 09, 2014 1:58 am

Re: How to Save a CSV file as a PDF File

Post by trags3 » Fri Aug 23, 2024 6:23 pm

Thanks Klaus,
I'll Give that a try!
Tom

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10078
Joined: Fri Feb 19, 2010 10:17 am

Re: How to Save a CSV file as a PDF File

Post by richmond62 » Fri Aug 23, 2024 6:45 pm

My first Q would be where your CSV stuff is originating.

If it is originating in a Table Field for instance, you can probably 'spit it out' directly to PDF without having to do a round trip through a CSV file.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

Re: How to Save a CSV file as a PDF File

Post by dunbarx » Fri Aug 23, 2024 8:40 pm

Hi,

I use, as Klaus mentioned, "open printing to PDF" all the time. That command simply prints whatever is on-screen, creating a PDF file instead of sending to a printer. All the normal printing gadgets are still valid, "formatForPrinting", "printMargins", "printPaperorientation", whatever. Check out the dictionary for other capabilities.

Craig

Post Reply