Support

Register your Product

Product Documentation

Knowledge Base

Contact Support

Community

User Group

Resources

Application Library

Flow Library

Script Library

Detect Font Courier in PDFspy data

This particular example assumes PDFspy has been used on a PDF job; it detects whether fonts named "Courier" exist in the processed PDF file.

Information

Supported by: PowerSWITCH (MAC and WIN)
Language: JavaScript

Description:

This is an example script that shows how information picked up from PDFspy can be used. It assumes the PDFspy configurator has been used on a PDF job and that font statistics were collected in a dataset named "PdfSpy".

The script goes into that dataset and looks for the font "Courier". If "Courier" exists in the processed PDF file, the job is moved to the error out connection. If this font was not listed in the metadata, the PDF is moved to the success out connection.

Using this script

  • Download and save the script on your computer: download script.
  • Select the script element in your PowerSWITCH flow and browse to the script in the script package property.
    or
  • Open the script in the SWITCHscripter and change it to your needs.

Example flow

  • Use Apago PDFspy to detect use of Courier

    The information collected by Apago PDFspy is exported as XML and also used to track down the font Courier.

© Copyright 2007 by Gradual Software.