800-304-5941
Using SwiftExtract
PCL Page Extractor
 

Overview

SwiftExtract is a standalone batch invocation of the "sview" executable common to Windows SwiftView Viewer and SwiftConvert, or the batch "svutil" executable common to Unix SwiftView Viewer and SwiftConvert.  Your SwiftExtract licensing enables the PCL page extraction feature in the program. 

This integration of the two products into a single program enables use of similar ICS command sequences to either extract PCL pages with SwiftExtract or convert with SwiftConvert.  Because SwiftExtract and SwiftConvert can be entirely controlled using a single command line, they are trivial to integrate into your application.  Here is sample code to invoke the program from a Windows C or Visual Basic application.

The ability to extract arbitrary page(s) from a PCL file is a unique SwiftView capability.  SwiftExtract identifies and extracts all PCL data associated with a given range of pages, including all resources defined on previous pages: macros, fill patterns, fonts etc.  This PCL data is prepended to the page data.  Finally SwiftExport analyzes the PCL state at the beginning of the page and adds PCL sequences to restore the state - as though all of the previous pages had been read.

If you purchase SwiftExtract and SwiftConvert together, you can also convert to PDF, TIFF, PostScript, PNG, PCL, and text, or use powerful PCL analysis features such as searching for text in a specific location on a page.  Thus, you can use SwiftConvert to search for text or convert to text to build an index, then pass the selected page numbers to SwiftExtract for extraction.  See Chapter 2: Primer in the SwiftConvert User Manual for examples of SwiftConvert use, especially the "Text Extraction" section for details on conversion to text.


Installation

The installation procedure is the same as for SwiftConvert; see the SwiftConvert User Manual for details.


Page caching

With SwiftExtract licensing, a PCL "page cache file" is generated by default, and is used to accelerate all SwiftExtract, SwiftConvert, and SwiftView PRo Viewer operations on a given PCL file.  Once any PCL file is viewed, page-extracted, analyzed, or converted, all subsequent operations are nearly instantaneous.

e.g. "c:\myfiles\.my.pcl" for "c:\myfiles\my.pcl".  It is marked as a "hidden file" on Windows.  For more information on configuring the page caching, see the "set cachepcl" command in the SwiftView ICS Programming Reference Manual 


Examples
Here are some example command lines to extract one or more ranges of pages:

sview -c"ldoc test.pcl | save ORIGINAL 2-3 outfile.pcl onefile"

sview -c"ldoc test.pcl | save ORIGINAL 2-3,1,5,7-99999 outfile.pcl onefile"

The save and plot output types DIRECT and ORIGINAL are the same - they move the original file data directly to an output destination, in this case, a file.

This last example extracts four ranges from a file.  The last range includes all pages from page 7 to the end of the file.  Note that the file must have at least 7 pages or an error will occur. Each range is extracted with all required resources, then the pages are concatenated.  As a result, the output file could be fairly large if the original file uses large macros or fonts repeatedly on multiple pages.


SwiftExtract Product Description


SwiftView®, SwiftConvert, SwiftStamp, SwiftExtract, SwiftReprint, SwiftPublish, and LoanDocs®, are trademarks of eLynx
SwiftView, a division of Black Knight Financial Services, 9205 SW Gemini Drive Beaverton, OR 97008 USA
800.720.0196 or +1.971.223.2600
  ©2017 Black Knight Financial Services.