Click or drag to resize

PDFSplitManagerSplitBySizeFromMemoryToFile Method

Splits the specified source PDF document into files of consecutive pages that are each at most maxFileSize bytes long, saved as 'destPDFFilePath' concatenated with the document index: Part.pdf gives Part_1.pdf, Part_2.pdf...

Namespace: ExpertPdf.Anywhere.PDFSplit
Assembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntax
public string[] SplitBySizeFromMemoryToFile(
	byte[] srcPdfBytes,
	string destPDFFilePath,
	long maxFileSize
)

Parameters

srcPdfBytes  Byte
The source PDF document as an array of bytes
destPDFFilePath  String
The full path of destination PDF file, to which the index is added
maxFileSize  Int64
The maximum size of each new document, in bytes.

Return Value

String
The full paths of the saved files, in page order.
Remarks
A page that is larger than the limit on its own makes a document of its own (larger than the limit).
See Also