SURYA N
SURYA N

Reputation: 293

How to check the pdf file is converted from other file types

I wanna know is the pdf file converted from other file types. Is there any possible ways to find this. Thank you in advance

Upvotes: 1

Views: 323

Answers (1)

Ryan
Ryan

Reputation: 2570

In general no, you could not determine that.

The closest you would find is the Producer entry of the Document Information Dictionary, but this tells your application, not the file type, so you would have to assume a PDF from Word was a DOCX for example.

Producer : (Optional; deprecated in PDF 2.0) If the document was converted to PDF from another format, the name of the PDF processor that converted it to PDF. NOTE 7 The pdf:Producer entry in the document’s metadata stream can be used to represent the tool that saved the document as a PDF.

You can disregard the deprecated part for the next decade... essentially every PDF has this entry.

Upvotes: 2

Related Questions