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.PDFSplitAssembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntaxpublic string[] SplitBySizeFromMemoryToFile(
byte[] srcPdfBytes,
string destPDFFilePath,
long maxFileSize
)
Public Function SplitBySizeFromMemoryToFile (
srcPdfBytes As Byte(),
destPDFFilePath As String,
maxFileSize As Long
) As String()
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
StringThe full paths of the saved files, in page order.
RemarksA page that is larger than the limit on its own makes a document of its own (larger than the limit).
See Also