I implemented PDF export from a field in my Devawriter Pro about 100 years ago, and that was only possible, then, to Mac.
I hope & suppose that export from a field to Windows (and Linux) is now possible.
PDF export
Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller
-
richmond62
- Livecode Opensource Backer

- Posts: 10544
- Joined: Fri Feb 19, 2010 10:17 am
Re: PDF export
We only have "open printing to PDF..." in LC right now.
Is that what you mean?
Is that what you mean?
-
richmond62
- Livecode Opensource Backer

- Posts: 10544
- Joined: Fri Feb 19, 2010 10:17 am
Re: PDF export
Possibly: I'll go and try. Thanks.Is that what you mean?
-
richmond62
- Livecode Opensource Backer

- Posts: 10544
- Joined: Fri Feb 19, 2010 10:17 am
Re: PDF export
No, No, No: that prints an image of a card, when what I am looking for is a PDF of the contents of a field.
https://lessons.livecode.com/a/29177-ho ... g-livecode
https://lessons.livecode.com/a/29177-ho ... g-livecode
Re: PDF export
Mabe there is a macOS SHELL command for this or maybe you used AppleScript?
-
richmond62
- Livecode Opensource Backer

- Posts: 10544
- Joined: Fri Feb 19, 2010 10:17 am
Re: PDF export
No: there is a relatively easy way in Mac:
The problem is how to do that with Windows and Linux.
Code: Select all
on mouseUp
ask file "Save as:" with "Print.pdf"
put it into tFileName
if tFileName is empty then exit to top
set the printerOutput to "file:" & tFileName
revShowPrintDialog false, false
revPrintField the long name of fld "GUFF"
end mouseUpRe: PDF export
Ha, had to look up "printeroutput" 
According to the docs that should work on: mac, windows, linux.
But doesn't?
According to the docs that should work on: mac, windows, linux.
But doesn't?
-
richmond62
- Livecode Opensource Backer

- Posts: 10544
- Joined: Fri Feb 19, 2010 10:17 am
Re: PDF export
I don't think so, but I have not tested it since 2023.