How to Build a Filter Script

MP4 Download AVI Download

Video Transcript

Welcome to the video tutorial on how to build a filter script. In this tutorial, we'll be going over the basics of how to configure the script to filter content based on your desires.

The first step is to open pgfilter.xml. This XML file controls what the filter script does and what steps it takes to accomplish the desired results.

There are three major sections that need to exist: InputFile, OutputFile, and Filter. The InputFile section governs what file or files this rule should apply to. The OutputFile section governs what file naming convention the script should use when it outputs the final content. The Filter section governs what happens to the data in the files read from the InputFile section before it uses the OutputFile section to write the new data.

The InputFile Name can be set to the value Parameter (case sensitive) or a static file name with path. The Delete flag determines whether the script will delete the input file when its processes finish.

The OutputFile Name can be set to InputFile (uses original filename) or a custom naming convention using variables like %InputFileName%, %InputFileNameBase%, %InputFileNameExtension%, %InputFilePathAndName%, and %InputFilePath%.

The Filter section governs what happens to the data before output and there can be many Filter sections in each script.

This concludes the video tutorial on how to build a filter script.

Ready to Get Started with PageGate?

Download a free trial or contact us with questions.