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

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
NigelS
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 83
Joined: Sat Oct 22, 2011 2:37 pm

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

Post 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
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

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

Post 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. ;)
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

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

Post by Klaus »

I deleted the other 3 (THREE!) identical postings 8)
Post Reply