Antwort auf: PDF oder Dateien integrieren

Startseite Foren Deutsches LiveCode-Forum PDF oder Dateien integrieren Antwort auf: PDF oder Dateien integrieren

#1297
Klaus Major
Administrator

    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