DynaPDF Manual - Page 736

Previous Page 735   Index   Next Page 737

Function Reference
Page 736 of 787
The XML invoice must be named as follows (case-sensitive and without quotes):
ZUGFeRD 1.0:
"ZUGFeRD-invoice.xml"
ZUGFeRD 2.0:
"zugferd-invoice.xml"
ZUGFeRD 2.1 / Factur-X:
"factur-x.xml"
The embedded invoice must also be associated with the Catalog object. This can be done with
AssociateEmbFile(). The parameter RelationShip must be set to arAlternate, arData, or arSource
depending on the used Factur-X or ZUGFeRD profile. See CheckConformance() for further
information.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetPrintSettings
Syntax:
LBOOL pdfSetPrintSettings(
const PPDF* IPDF,
// Instance pointer
TDuplexMode Mode,
// See below
SI32 PickTrayByPDFSize,
// 1 = true, 0 = false, -1 = app default
UI32 NumCopies,
// 0 = app default, max = 5
TPrintScaling PrintScaling, // See below
UI32* PrintRanges,
// Optional start/end page number pairs
UI32 NumRanges)
// Number of ranges
typedef enum
{
dpmNone, // Default
dpmSimplex,
dpmFlipShortEdge,
dpmFlipLongEdge
}TDuplexMode;
typedef enum
{
psAppDefault, // Default
psNone
}TPrintScaling;
The function adds preferred print settings to the PDF file. Viewer applications use the print settings
to initialize the print dialog. Print ranges, if set, consist of two numbers which define the start and
end page number that should be printed.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: ZUGFeRD, ZUGFeRD 2.0, Factur-X / ZUGFeRD 2.1

Next topic: SetProgressProc

Start Chat