How can I programmatically verify that a PDF file is first-generation?

I am actually working on a project that includes the Fannie Mae/Freddie Mac Uniform Assessment Dataset. The spec requires that the inserted assessment PDF data be first-generation.

iText seems to be to be actually popular in the.NET/Java planet. You’ll perhaps likewise need to inform on your own with the PDF Specification to profit it.

If you boil the question as well as recap down to your primary objective, I presume you’ll acquire more traction. You are actually certainly not attempting to determine if a PDF documents is actually “first-generation” but somewhat if message featured in a document is still in text layout as well as certainly not image format. I am actually certainly not even sure if that are going to help you if your documents have trademarks, which would certainly require them to become scanned at the very least one (unless inserted trademark images are actually being used).

There is actually no other way to recognize for particular if a PDF is actually “very first production”. Technically, a browsed PDF is simply a PDF that includes images and probably Optical Character Recognition’ ed content on best of that. A “very first age group” PDF could easily have the very same features, thus you possess to utilize some heuristics.

Dued to the fact that this is actually an industry criteria of a huge industry, I think that a person must possess currently tackled this concern, but I am actually having a hard time finding just about anything.

I recognize conceptually what a first-generation PDF documents is (printing of a document directly to PDF, as opposed to a checked copy or even published and also checked copy). Nonetheless, I’ve performed some research as well as haven’t found anything that defines the homes of a first-generation PDF that can be validated programmatically.

I located an item that enables one to check out if a PDF contains text message, images, or both: for.NET, however I am actually trying to find a method to schedule this myself, for budgetary as well as other reasons. I’m not certain that establishing that the report contains content will certainly be sufficient to confirm that it’s first-generation.

For instance, a PDF which contains merely images and also undetectable content (from OCR) is actually likely to become checked, a PDF that possesses visible text or even vector graphics is actually most likely “initially creation” (OCR for checked PDFs functions by overlaying unseen content in addition to the initial image, to ensure that message selection operates, yet the initial document’s loyalty is actually kept).

Is it achievable to show the date/time of viewing/printing of a PDF document?

I suppose it must involve Adobe Java Script but I’m certainly not entirely sure this goes to all possible.

I do possess Acrobat X Pro and also I may be sure the pdf is going to be opened up with Acrobat Audience 9 or Performer reader X.

You produce a content area on the page at the place where you prefer the date/time to show up and also specify its own visibility to HiddenButPrintable. The action will be carried out prior to the document is imprinted.

Embedding a few other information will definitively be actually a plus (like the course the document or even the label of the writer as it is actually stored in the PDF buildings).

Out of basic curiosity, having observed the littlest GIF, what is the littlest possible authentic PDF data?

It also appears that when the specification claims “shall be a secondary endorsement” and/ Matter is needed, as well as the header “must” be actually %PDF-1.0, they’re producing loosened suggestions. This is actually the tiniest I might make it and have it openable in Acrobat X

The PDF report is created on a web server and also received as NSData. Swift is able to publish this NSData things; however, it is actually certainly not recognized on the share sheet by various other apps that commonly take PDFs, like Travel. The only options presented on the portion sheet are actually for publishing and duplicating.

Leave a Reply

Your email address will not be published. Required fields are marked *