Page 1 of 1

How can one import in a PDF file like a RTF file?

Posted: Thu Aug 16, 2012 5:30 pm
by NigelS
Is there a way to bring in a PDF or DOC file the same way as one can for a RTF or TXT file as per the example below

Code: Select all

case ".rtf"
         put URL ("file:" & tFile) into tWorkingDocumentContents
         set the rtftext of fld "WorkingDocumentField" to tWorkingDocumentContents
         break
 case ".txt"
          put URL ("file:" & tFile) into field "WorkingDocumentField"
          break

Re: How can one import in a PDF file like a RTF file?

Posted: Thu Aug 16, 2012 10:01 pm
by FourthWorld
PDF is an odd format, more like an image in many respects than text, so it may be some time before we see LiveCode offer it directly. I know a third party working on an external for that, but it comes encumbered with licensing of another party's library, so it's not cheap. If interest let me know and I'll put you in touch.

But for docx and odt, Curry Kenworthy's WordLib is da bomb. Check it out:
http://www.curryk.com/wordlib.html

PS: Please consider a single post for a single question. Most readers here use "New Posts" so we'll find it, and we'll keep finding it again and again and again if it's posted multiple times. ;)

Re: How can one import in a PDF file like a RTF file?

Posted: Fri Aug 17, 2012 10:51 am
by Klaus
I deleted the other 3 (THREE!) identical postings 8)