Would be careful on attachments. With Windows, a file might have a PDF extention, but could actually be some other type of executible, and windows might try to run it. Have seen files with various extentions that turn out to exe or dll files that when passed to windows will try to execute.
Real PDF files should actually start with a %PDF.
First one looks at extention, 2nd one looks for PDF starting at byte 1
PDF-file,0,X,0,.pdf
PDF-FILE,0,S,1,PDF,X,0,.PDF
Might be too long file name. I generally, would save file and look at it with hex editor to see what it starts with.
%PDF would be a PDF, but if it starts with MZ it is an executible...
What program to you have set to use for PDF files. Windows default or a different PDF viewer.
Would be careful on attachments. With Windows, a file might have a PDF extention, but could actually be some other type of executible, and windows might try to run it. Have seen files with various extentions that turn out to exe or dll files that when passed to windows will try to execute.
Real PDF files should actually start with a %PDF.
First one looks at extention, 2nd one looks for PDF starting at byte 1
PDF-file,0,X,0,.pdf
PDF-FILE,0,S,1,PDF,X,0,.PDF
Might be too long file name. I generally, would save file and look at it with hex editor to see what it starts with.
%PDF would be a PDF, but if it starts with MZ it is an executible...
What program to you have set to use for PDF files. Windows default or a different PDF viewer.