PDF file created is not a valid PDF file

General usage of the PDF Printer.

Moderator: jr

keaves
Posts: 1
Joined: Tue Jun 01, 2010 8:50 pm

PDF file created is not a valid PDF file

Post by keaves »

I am trying to print a datawindow from Powerbuilder and the pdf file that is created is not recognized by the pdf reader.
This is the first few lines from the pdf file that is created. Does anyone know what is going on?
%!PS-Adobe-3.0
%%Title: INV_S4189440_laser.pdf
%%Creator: PScript5.dll Version 5.2.2
%%CreationDate: 6/1/2010 13:48:0
%%BoundingBox: (atend)
%%Pages: (atend)
%%Orientation: Portrait
%%PageOrder: Special
%%DocumentNeededResources: (atend)
%%DocumentSuppliedResources: (atend)
%%DocumentData: Clean7Bit
%%TargetDevice: (3010) 815
%%LanguageLevel: 2
%%EndComments
sumaiya
Posts: 1
Joined: Sat Jul 10, 2010 7:57 am

Re: PDF file created is not a valid PDF file

Post by sumaiya »

i am also a victim of this

http://provillusinfo.org
Nattydee
Posts: 3
Joined: Wed Feb 23, 2011 5:46 am

Re: PDF file created is not a valid PDF file

Post by Nattydee »

I use the genuine version, never have any problem.
judith90
Posts: 1
Joined: Fri Oct 21, 2011 11:05 am

Re: PDF file created is not a valid PDF file

Post by judith90 »

How can I check whether a file is indeed a true PDF file (that can be, for example, opened in Preview)? Would I be able to filter true PDFs file in an open dialog, or would I just have to stick to filtering with only the pdf extension in open dialogs, and later ignore the non-valid PDF files?

Do you have sample code that checks whether a given file is a genuine PDF file?
Post Reply