Bladez
10-08-2008, 04:26 AM
how can i extract from a pdf file a line of text ?
|
Click to See Complete Forum and Search --> : [RESOLVED] extract pdf - > php Bladez 10-08-2008, 04:26 AM how can i extract from a pdf file a line of text ? ariell 10-08-2008, 07:50 PM a) do not do it, for it's error-prone. b) if you want to take the risk, though, use this: PHP has a function: "bool cpdf_begin_text ( int pdf_document )" NOTE: int, handle to, NOT the pure file name. cpdf_begin_text() starts a text section. If it works, you get TRUE. Otherwise FALSE. An created text section must be ended with cpdf_end_text(). e.g... given a section from pdf-text: <?php cpdf_begin_text($pdftextsection); cpdf_set_font($pdf, 16, 'Verdana', 'WinAnsiEncoding'); cpdf_text($pdftextsection, 100, 50, 'BlaBlaBla'); cpdf_end_text($pdftextsection) ?> I GUESS, php.net has some documentation on this, it's too much to explain here... Best from the south. Bladez 10-09-2008, 12:25 AM thank you for the winderful hint.. ariell appriciate this. Jus as an additional question complete my understand.. ok it uses coordinates...hmmm.. ok then this is not the way... oh god got to use tradisional via database hehehe... i think i understand thank you alooootttt for the lil bit knowledge sharing u did.. i think i can lead my way from here.. thx. ariell 10-09-2008, 05:01 AM A pleasure! If you get stuck on the way, come back... Best from the south. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |