Preview as PDF¶
Renders a package name and xPression data XML specifically as a PDF, returning the rendered PDF bytes without printing or distributing the result.
| Field | Value |
|---|---|
| Operation ID | OP-02 |
| Trigger | clsPrint.previewPDF invoked |
| Inputs | Package name, xPression data XML |
| Outputs | PDF bytes (Byte()) |
| Primary components | clsPrint.previewPDF, private xpreviewPDF, m_Xpresso.previewPDF |
| Entry point | SAIF.Services.Printing/clsPrint.vb |
Steps¶
- Trims and assigns
inPackageto thePackageproperty. The package name is normalized by stripping a trailing.pkgextension via thePackagesetter (BR-PRT-001) — the same normalization applied in Preview a document. - Assigns
inXMLto theXMLproperty. - Calls the private
xpreviewPDF(m_Package, inXML, "xPression Design"), a thin pass-through tom_Xpresso.previewPDF(inDocumentName, inXML, inApplication). - The application name
"xPression Design"is passed as a hard-coded literal rather than them_Applicationfield used implicitly by Preview a document's privatepreviewDocument(). Both happen to default to the same string, but this operation's call site is structurally distinct: it cannot be overridden by setting theApplicationproperty.* - Returns the PDF bytes from
m_Xpresso.previewPDFdirectly to the caller.
Process flow¶
flowchart TD
Start(["previewPDF invoked"]) --> Norm["Normalize package name"]
Norm --> SetXML["Set XML"]
SetXML --> Call["xpreviewPDF<br>(hard-coded<br>'xPression Design')"]
Call --> Svc["m_Xpresso.previewPDF"]
Svc --> End(["Return PDF bytes"])
Failure and edge-case behavior¶
- There is no try/catch around the web service call, the same as Preview a document; any exception raised by
m_Xpresso.previewPDFpropagates directly to the caller. - This entry point has no output-profile parameter; PDF is implied by the method itself rather than by a caller-supplied or instance-level
OutputProfilevalue.
Related documentation¶
- Index
- Overview
- Architecture
- Dependencies
- Operations and processes
- Business rules
- Configuration
- API reference
Note: Statements marked with * were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts. Statements marked with ** could not be confirmed; treat as unknown until verified.
Sources¶
SAIF.Services.Printing/clsPrint.vb