Startseite › Foren › Deutsches LiveCode-Forum › PDF oder Dateien integrieren › Antwort auf: PDF oder Dateien integrieren
Juli 7, 2017 um 11:18 Uhr
#1297
Hi Heiko,
OK, here we go!
1. Einlesen einer Datei in eine Custom Property:
...
set the cPDFFile of this stack to URL("binfile:path/to/pdffile.pdf")
...
## Oder:
answer file "PDF auswählen:" with type "PDF|pdf|"
set the cPDFFile of this stack to URL("binfile:" & it)
...
2. „Ausspucken“ der Datei in den TEMP Ordner, die Datei kannst Du natürlich auch anders benennen:
...
put specialfolderpath("temporary") & "/el_tempo.pdf" into tPDFPath
put the cPDFFile of this stack into url("binfile:" & tPDFPath)
launch document tPDFPath
...
Bei weiteren Fragen, einfach fragen 🙂
Gruß
Klaus