Please enable JavaScript to view this site.

Navigation: Using Win2PDF and Win2Image > Document Settings > Auto-name Files and Configure File Save Naming

Content Based File Naming

Scroll Prev Top Next More

Win2PDF allows the file to be named based on the contents of the PDF file.  This can be helpful if the application generating the PDF can't be changed to use the Win2PDF developer interface to name the PDF files.

 

The Win2PDF content based naming can search the text of a document, and then extract a word following the target search word.  It requires that document contains text with a common search word that exists in all PDF files.  To see the text searched by Win2PDF, you can create a sample PDF from your application and use the "extract text" feature of the Win2PDF Desktop Application to see the search text of the PDF.

 

The content search word is specified using the Win2PDF Admin Utility using the "Content Based Naming Search Word" field of the "File Name" tab:

Content Based Naming Search Word

Content Based Naming Search Word

 

After setting the search word in the Win2PDF Admin Utility, you can enable the auto-name feature and specify the content based name using the "User Defined" field and manually typing in the variable name %PDFAutoNameContentSearch%:

Auto-name Content Based Naming

Auto-name Content Based Naming

 

The %PDFAutoNameContentSearch% can be combined with any of the other user defined variables to add a date and/or time stamp.

 

As an example, consider a document that contains the following text:

 

 DATE 09 - 05 - 19          HENNEPIN COUNTY SHERIFF'S DEPARTMENT

                                     6600 West 3th St, Ste 116

                                     Owatonna, MN 98901

 Doc #: 398277

                                       Affidavit Of Return

 

 Paper #: 194094                To: STATE OF MINNESOTA

 

If we want to name the PDF based on the "Paper #:" field in the PDF, we would use the Win2PDF Admin Utility to set the "Content Based Naming Search Word" to "Paper #:".  After that, we would enable the Auto-name feature, check the "User Defined" option, and set it to %PDFAutoNameContentSearch%.pdf. When the document is printed to the Win2PDF printer, the content based naming feature automatically names the PDF "194094.pdf" based on the contents of the document.

 

If you print a document that does not contain the search word when the content based naming is enabled, the PDF file is named with "%PDFAutoNameContentSearch%" in the file name.

 

Content based file naming cannot be used when PDF encryption is enabled.