KVSMTCIImageUtilsPdf#
Procedures#
Init(Record KVSMTCHttpServiceParameter) :#
Summary: Initializes the service with the given parameters.
procedure Init(var parameter: Record "KVSMTCHttpServiceParameter" temporary):
Parameters:
parameter
: Service parameters for initialization.
Ping() : Boolean#
Summary: Checks the service availability.
procedure Ping(): Boolean
Returns: True if the service is available, otherwise false.
PageCount(InStream) : Integer#
Summary: Gets the page count of the PDF.
procedure PageCount(var pdfInStream: InStream): Integer
Parameters:
pdfInStream
: Input stream of the PDF.
Returns: Number of pages in the PDF.
RemovePages(InStream, List, OutStream) :#
procedure RemovePages(var pdfInStream: InStream; pagesToDelete: List; var pdfOutStream: OutStream):
AddStamp(InStream, InStream, InStream, Boolean, OutStream) :#
Summary: Adds a stamp to the PDF.
procedure AddStamp(var pdfInStream: InStream; var stampFirstPageInStream: InStream; var stampOtherPagesInStream: InStream; applyToAllPages: Boolean; var pdfOutStream: OutStream):
Parameters:
pdfInStream
: Input stream of the PDF.stampFirstPageInStream
: Input stream of the stamp for the first page.stampOtherPagesInStream
: Input stream of the stamp for other pages.applyToAllPages
: Indicates whether to apply the stamp to all pages.pdfOutStream
: Output stream of the stamped PDF.
Join(Record KVSMTCImageUtilsDocumentFile, OutStream) :#
Summary: Joins multiple documents into a single PDF.
procedure Join(var documentFiles: Record "KVSMTCImageUtilsDocumentFile" temporary; var pdfOutStream: OutStream):
Parameters:
documentFiles
: Record of document files to be joined.pdfOutStream
: Output stream of the joined PDF.
JoinPdf(Codeunit Temp Blob List, OutStream) :#
procedure JoinPdf(var files: Codeunit "Temp Blob List"; var pdfOutStream: OutStream):
GetPaperSources(Text, Dictionary) :#
procedure GetPaperSources(printerName: Text; var paperSourceIndexNameDict: Dictionary):
Print(Record KVSMTCImageUtilsDocumentFile, Record KVSMTCImageUtilsPrintProfile, Enum KVSMTCImageUtilsPrintMethod) : Boolean#
Summary: Prints the specified documents using the given print profiles and method.
procedure Print(var documentFiles: Record "KVSMTCImageUtilsDocumentFile" temporary; var printProfiles: Record "KVSMTCImageUtilsPrintProfile" temporary; printMethod: Enum "KVSMTCImageUtilsPrintMethod"): Boolean
Parameters:
documentFiles
: Record of document files to be printed.printProfiles
: Record of print profiles to be used.printMethod
: Enum specifying the print method.
Returns: True if the print operation is successful, otherwise false.
FillPdfForm(InStream, XmlDocument, Text, OutStream) :#
Summary: Fills a PDF form with the provided XML data.
procedure FillPdfForm(var templateFile: InStream; xmlData: XmlDocument; password: Text; var pdfOutStream: OutStream):
Parameters:
templateFile
: Input stream of the PDF template file.xmlData
: XML document containing the data to fill the form.password
: Password for the PDF form, if any.pdfOutStream
: Output stream of the filled PDF form.
FlatPdfForm(InStream, OutStream) :#
Summary: Flattens a PDF form.
procedure FlatPdfForm(var pdfInStream: InStream; var pdfOutStream: OutStream):
Parameters:
pdfInStream
: Input stream of the PDF to be flattened.pdfOutStream
: Output stream of the flattened PDF.
ConvertToPdf(InStream, Text, Record KVSMTCImageUtilsConversionArgs, OutStream) :#
Summary: Converts an image to a PDF.
procedure ConvertToPdf(var imageInStream: InStream; fileName: Text; var arguments: Record "KVSMTCImageUtilsConversionArgs" temporary; var pdfOutStream: OutStream):
Parameters:
imageInStream
: Input stream of the image to be converted.fileName
: Name of the file to be created.arguments
: Conversion arguments.pdfOutStream
: Output stream of the converted PDF.
OptimizePdf(InStream, Record KVSMTCImageUtilsConversionArgs, OutStream) :#
Summary: Optimizes a PDF.
procedure OptimizePdf(var imageInStream: InStream; var arguments: Record "KVSMTCImageUtilsConversionArgs" temporary; var pdfOutStream: OutStream):
Parameters:
imageInStream
: Input stream of the PDF to be optimized.arguments
: Optimization arguments.pdfOutStream
: Output stream of the optimized PDF.
GetLastResponseInfo(Record KVSMTCHttpResponseBuffer) :#
Summary: Retrieves the last response information.
procedure GetLastResponseInfo(var responseBuffer: Record "KVSMTCHttpResponseBuffer" temporary):
Parameters:
responseBuffer
: Buffer to store the response information.