Hi,
I need to upload pdf file using php and store that pdf files in certain path.The pdf which is under Acrobat Distiller is uploading successfully.But the pdf files which is under AFPL Ghostscript
is not uploaded.
coding:
echo $_FILES['file']['type'];
if($_FILES['file']['type']=="application/pdf")
{
if(file_exists("$filepath/upload/$basename"))
{
//file already exists
return false;
}
else
{
//move uploaded file
move_uploaded_file($_FILES["file"]["tmp_name"], "$filepath/upload/$basename/" .
$_FILES["file"]["name"]);
}
.
pdf files information :successfuly uploaded pdf file information
Producer: Acrobat Distiller 5.0 (Windows)
CreationDate: Sat Dec 12 17:38:54 2009
ModDate: Sat Dec 12 17:38:54 2009
Tagged: no
Pages: 1
Encrypted: no
Page size: 765 x 992 pts
File size: 70313 bytes
Optimized: no
PDF version: 1.4
.
pdf files information :Not uploaded pdf file information
Producer: AFPL Ghostscript 8.51
CreationDate: Sun Dec 13 08:21:31 2009
ModDate: Sun Dec 13 08:21:31 2009
Tagged: no
Pages: 1
Encrypted: no
Page size: 943.6 x 1512 pts
File size: 2417366 bytes
Optimized: no
PDF version: 1.3
Thank you in advance,
prem