|
PlanetPress Capture Library
|
This object wraps functionality to read and process PGC files directly. More...
Public Member Functions | |
| IFileList | SplitPGC (const WideString OutputFolder) |
| Takes a PGC file and splits it by pattern. | |
| MergePGC (const IFileList FileList, const WideString OutputFilename) | |
| Takes multiple PGC files and merges them into one PGC. | |
| WideString | GetPatternAddress (Integer Index) |
| Returns the pattern address at the specified index. | |
| Integer | GetPatternCount () |
| Returns the number of different patterns found inside the PGC file. | |
| WideString | GetPenProperty (TPenProperty PropertyID) |
| Returns the value of the requested property. | |
| LoadFromFile (const WideString FileName) | |
| Loads a PGC file. | |
| SaveAsPDF (const WideString OutputFilename, const IPenStore PenStore) | |
| Saves the inks from the loaded PGC as a PDF. | |
This object wraps functionality to read and process PGC files directly.
Instances of this object can be created using the CaptureLib.PgcUtility ProgID.
MergePGC, every method works on the file loaded by LoadFromFile. | WideString TPgcUtility::GetPatternAddress | ( | Integer | Index | ) |
Returns the pattern address at the specified index.
| Index | Index of the desired address. |
| Integer TPgcUtility::GetPatternCount | ( | ) |
Returns the number of different patterns found inside the PGC file.
| WideString TPgcUtility::GetPenProperty | ( | TPenProperty | PropertyID | ) |
Returns the value of the requested property.
| PropertyID | Identification number of the requested property. This can be one of:
|
| TPgcUtility::LoadFromFile | ( | const WideString | FileName | ) |
Loads a PGC file.
| FileName | File name of the PGC to load. |
| TPgcUtility::MergePGC | ( | const IFileList | FileList, |
| const WideString | OutputFilename | ||
| ) |
Takes multiple PGC files and merges them into one PGC.
All the input PGC files must belong to the same pen, otherwise an exception will be raised.
| FileList | List of complete path and file names of the PGC files to merge. |
| OutputFilename | Complete path and file name of the merged file. |
| EOleException | PGC files do not all belong to the same pen. |
| TPgcUtility::SaveAsPDF | ( | const WideString | OutputFilename, |
| const IPenStore | PenStore | ||
| ) |
Saves the inks from the loaded PGC as a PDF.
It creates one page per pattern found inside the PGC. All the information relative to the PGC is stored in the XMP of the PDF.
| OutputFilename | Filename for the created PDF. |
| PenStore | Instance of the Pen Store object. The pen referenced by the loaded PGC file must be licensed for use in the Pen Store. |
| EOleException | The pen is not licensed. |
| IFileList TPgcUtility::SplitPGC | ( | const WideString | OutputFolder | ) |
Takes a PGC file and splits it by pattern.
A new PGC file is created for every pattern found in the loaded PGC.
| OutputFolder | Folder in which to store the split PGC files. |