Extracting text from a PDF file or filling a montlhy PDF Courses Form
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Extracting text from a PDF file or filling a montlhy PDF Courses Form
Hi,
Can someone update me about those two solutions I plan...
1) Having to Extract lines of text from a PDF monthly document,
rebuild my own look alike format.
Complete all fields and make a printable completed similar PDF doc.
Or..
2) Fulfill all empty fields with data from a managing stack...and print it too.
(in that case no content import/export, just editing/adding text above/within the PDF file.
I believe the second solution is less flexible since the fields to complete will be at a sligthly different location and with dif sizes, each month.
Which ever is doable under LC. ?!!
TKS
Can someone update me about those two solutions I plan...
1) Having to Extract lines of text from a PDF monthly document,
rebuild my own look alike format.
Complete all fields and make a printable completed similar PDF doc.
Or..
2) Fulfill all empty fields with data from a managing stack...and print it too.
(in that case no content import/export, just editing/adding text above/within the PDF file.
I believe the second solution is less flexible since the fields to complete will be at a sligthly different location and with dif sizes, each month.
Which ever is doable under LC. ?!!
TKS
Re: Extracting text from a PDF file or filling a montlhy PDF Courses Form
This is easy with livecode and more flexible.
The PDF format is one way to untouchable, when something is in PDF can't come back anymore. PDF was created to print, not to modify it or else.
If you design correctly your LIVECODE template, the result will be always the same.
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Re: Extracting text from a PDF file or filling a montlhy PDF Courses Form
Code: Select all
when something is in PDF can't come back anymore.
aiaiiii...
-
- VIP Livecode Opensource Backer
- Posts: 9837
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Extracting text from a PDF file or filling a montlhy PDF Courses Form
Are these documents meant to be printed?
I wonder if a more modern, maleable format like ePub may be a good fit.
I wonder if a more modern, maleable format like ePub may be a good fit.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Extracting text from a PDF file or filling a montlhy PDF Courses Form
Actualy, just 1 copy to paper
All other - look alike - copies would be only virtualy shared under some electronic format sqlite/pdf/excel
I thought of just making an empty Form from scratch with sqlite. then export it to PDF,
+ probably an APP that syncro over the net witht the same monthly data...so no need of a PDF for those users.
still the 1 paper copy is needed.
the burden is having to manualy copy/paste new data everymonth from delivered PDF to the LC stack.
Thats the way I will go if I cant automate it afterall..
All other - look alike - copies would be only virtualy shared under some electronic format sqlite/pdf/excel
I thought of just making an empty Form from scratch with sqlite. then export it to PDF,
+ probably an APP that syncro over the net witht the same monthly data...so no need of a PDF for those users.
still the 1 paper copy is needed.
the burden is having to manualy copy/paste new data everymonth from delivered PDF to the LC stack.
Thats the way I will go if I cant automate it afterall..
Re: Extracting text from a PDF file or filling a montlhy PDF Courses Form
Livecode can create PDF, so centralize all on livecode.
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Re: Extracting text from a PDF file or filling a montlhy PDF Courses Form
For the same final doc. :
Which content is lighter to transfer/downlaod from a Server to several Devices ?
PDF data content ...or ...EPUB data content ?
or it is just the same.
Can one build an epub doc from a device ?
Same for PDF ?
Or one has to download ready made EPUBS end PDFs files ?
finaly
Can one print an Epub doc as easely as one print PDF from any devices Oses, IOs, Android/Linux/windows ?
Which content is lighter to transfer/downlaod from a Server to several Devices ?
PDF data content ...or ...EPUB data content ?
or it is just the same.
Can one build an epub doc from a device ?
Same for PDF ?
Or one has to download ready made EPUBS end PDFs files ?
finaly
Can one print an Epub doc as easely as one print PDF from any devices Oses, IOs, Android/Linux/windows ?
Re: Extracting text from a PDF file or filling a montlhy PDF Courses Form
epub is lighter than PDF
epub is just a text file, very easy to write.
PDF is a nightmare.
epub is just a text file, very easy to write.
PDF is a nightmare.
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Re: Extracting text from a PDF file or filling a montlhy PDF Courses Form
,,,any other format that could offer a more "fancy look" like a PDF print ?
I think thats why PDF is so popular today..
I think thats why PDF is so popular today..
Re: Extracting text from a PDF file or filling a montlhy PDF Courses Form
You can use HTML, any web page is in HTML and is fancy.
I think that HTML probably is the best for you, because:
I think that HTML probably is the best for you, because:
- just a single HTML file for multiple pages
- it is pure text, so is very easy to edit, write, modify
- it auto-formats to device or paper format
- whan you print it, it autosplits on multiple pages
- just use a browser to see it
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
-
- Livecode Opensource Backer
- Posts: 9386
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Extracting text from a PDF file or filling a montlhy PDF Courses Form
There are PDF documents and PDF documents . . .
Older PDF documents are, to all intents and purposes just multi-page images, and as such are useless re importing text
and can generally only be converted to text using OCR, which I can assure you is a headache of gargantuan proportions,
especially when the text is in non-Latin script.
Newer PDF documents contain an embedded text layer which can be selected, copied and pasted elsewhere . . .
Mind you, I have no idea how you would extract that embedded text layer into, say, a LiveCode textField.
Older PDF documents are, to all intents and purposes just multi-page images, and as such are useless re importing text
and can generally only be converted to text using OCR, which I can assure you is a headache of gargantuan proportions,
especially when the text is in non-Latin script.
Newer PDF documents contain an embedded text layer which can be selected, copied and pasted elsewhere . . .
Mind you, I have no idea how you would extract that embedded text layer into, say, a LiveCode textField.