PTC ALD in Arbortext Styler > Components of Documents and Templates > Tags > Graphics
  
Graphics
PTC Advanced Print Publisher divides graphics into two types, referred to as object graphics (.og tags) and raster graphics (.rg tags). These terms refer to vector graphics and bitmap graphics, respectively. PTC Advanced Print Publisher treats these two graphic types differently as it uses two different methods to display them.
Object graphics use PTC Advanced Print Publisher’s own vector drawing functionality to render the graphics. SVG and CGM are the two most common types of graphic that are treated as object graphics. PTC Advanced Print Publisher can import these formats and display them either inline or in frames. SVG XML instances created in PTC Advanced Print Publisher can also be displayed as graphics, which supports the dynamic creation of graphics from content. In the Arbortext Publishing Engine and Arbortext Styler integrations, CGM and SVG graphics are converted to EPS before they reach PTC APP during publishing. They are then treated as raster graphics.
A vector graphic drawing tool is provided in the PTC Arbortext Layout Developer— Desktop product interface, which allows you to create your own graphics. The vector tool features straight, curved, and freehand lines, regular shapes, and other typical vector tools. You can create your own lines and apply text to the path of those lines. It is also possible to use the outline of a character as a vector path. A number of samples that demonstrate the vector tool are provided with the PTC Arbortext Layout Developer— Desktop installation.
The fGraphic object represents object graphics in the Formatting Object Model (FOM).
Raster graphics can also be displayed inline or in frames. PTC Advanced Print Publisher supports most bitmap graphic formats including TIFF, JPG, GIF, PNG, EPS, and BMP. PTC Advanced Print Publisher can also treat a PDF as a graphic, letting you place a PDF page on a document page. PDF import also allows you to specify the specific page from a multi-page PDF that should be imported.
Other tools are provided to help manipulate raster graphics, including inverting, flipping, and mirroring.
The fRaster object represents raster graphics in the Formatting Object Model (FOM).
Refer to Graphical Content for information about graphical content of documents.
As already mentioned, graphics can be displayed inline or in frames. In Arbortext Styler stylesheet driven output, graphics in the text are displayed inline. Graphics assigned as backgrounds to page regions are displayed as part of the frame. Each method allows scaling of raster graphics in the horizontal and vertical axes. Vector graphics can be scaled when used inline, but not in frames. Scaling values can be:
Fit to measure — scales the graphic to fit the amount of space available
Absolute size — when the graphic must be a specific size
Percentage of the original graphic’s size
Preserve aspect ratio — ensure the ratio of horizontal to vertical is kept as the original graphic when one dimension has a scale
These properties only affect the display of the graphic in PTC Advanced Print Publisher. They do not change the graphic file. This means that the same graphic can be displayed with different scaling at different places in a document without having to maintain multiple instances of the same graphic.
Graphics can either be linked to the PTC Advanced Print Publisher document, which is the most usual case, or loaded into the document. The use of linked files keeps the document size to a minimum and allows the graphic to be updated externally without having to update the document itself. PTC Advanced Print Publisher also supports OPI printing, where a low-resolution graphic is used for proofing and a high-resolution graphic is used when outputting the final document.
When creating PDF output, it is possible to specify a print option that retains the color profile information included in linked graphics. You can instruct PTC Advanced Print Publisher to pass the graphic directly through to the PDF generation library. This option can also be used to ensure graphic transparent backgrounds are maintained.
Refer to PDF Configuration Settings in the PTC Advanced Print Publisher Help Center for further information.