Hi
I want to read a pdf file using php. but i want toread that file line by line and made changes in it is it possible
thanks
akbar ali butt
0
Newbie Poster
Recommended Answers
Jump to PostHi akbar ali butt,
Without knowing further details, it's hard to say if it's possible or not. It is certainly possible to open, create and modify PDF's using PHP's built in PDF functions. You may benefit from reading through the PDF functions that PHP offers and deciding for yourself …
Jump to Post<?php function pdfVersion($filename) { $fp = @fopen($filename, 'rb'); if (!$fp) { return 0; } /* Reset file pointer to the start */ fseek($fp, 0); /* Read 20 bytes from the start of the PDF */ preg_match('/\d\.\d/',fread($fp,20),$match); fclose($fp); if (isset($match[0])) …
All 7 Replies
chrelad
4
Light Poster
akbar ali butt
0
Newbie Poster
matali
0
Newbie Poster
ara_pucit
0
Newbie Poster
NewToPhp
0
Newbie Poster
ampere
muskaan.pari22
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.