Skip to content

Commit eb8b34c

Browse files
committed
new KB Splitting Big PDF Documents into Smaller Files Efficiently
1 parent 007d533 commit eb8b34c

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed
126 KB
Loading

knowledge-base/split-big-pdf-documents.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,11 @@ ticketid: 1679749
1717

1818
## Description
1919

20-
When working with large PDFs, especially those comprising thousands of pages and embedded images, it might be necessary to split these documents into smaller "chunks" of a specified number of pages. This need arises particularly in scenarios where the processing service can only handle PDFs of a limited page count. The challenge includes efficiently exporting subsets of pages without having to repeatedly re-import the entire document for each chunk. This knowledge base article also answers the following questions:
21-
22-
- How can I split a large PDF into smaller sections without re-importing it each time?
23-
- What is the best way to handle large PDF files with RadPdfProcessing?
24-
- How to use PdfStreamWriter to create smaller PDF chunks from a large PDF?
20+
When working with large PDF documents, it might be necessary to split these documents into smaller "chunks" of a specified number of pages. This article shows a sample approach how to export efficiently subsets of pages without having to repeatedly re-import the entire document for each chunk.
2521

2622
## Solution
2723

28-
To efficiently export subsets of pages from a large PDF document, the `PdfStreamWriter` functionality of RadPdfProcessing can be leveraged. This approach significantly improves performance and reduces memory usage, making it ideal for processing large volumes of PDFs. Below is a step-by-step guide on how to split a PDF document into smaller "chunks" using `PdfStreamWriter`.
24+
To efficiently export subsets of pages from a large PDF document, the [PdfStreamWriter]({%slug radpdfprocessing-formats-and-conversion-pdf-pdfstreamwriter-overview%}) functionality of [RadPdfProcessing]({%slug radpdfprocessing-overview%}) can be leveraged. This approach significantly improves performance and reduces memory usage, making it ideal for processing large volumes of PDFs. Below is a step-by-step guide on how to split a PDF document into smaller "chunks" using `PdfStreamWriter`.
2925

3026
### Step 1: Include Necessary Namespaces
3127

@@ -96,10 +92,11 @@ internal class Program
9692
}
9793
```
9894

99-
This solution efficiently processes the splitting operation by writing each chunk directly to a new file without the need to re-import the original document multiple times.
95+
This solution efficiently processes the splitting operation by writing each chunk directly to a new file without the need to re-import the original document multiple times:
96+
97+
![Split Large PDF](images/split-big-pdf.png)
10098

10199
## See Also
102100

103-
- [PdfStreamWriter Overview](https://docs.telerik.com/devtools/document-processing/libraries/radpdfprocessing/formats-and-conversion/pdf/pdfstreamwriter/overview)
104-
- [RadPdfProcessing Documentation](https://docs.telerik.com/devtools/document-processing/libraries/radpdfprocessing/overview)
105-
- [.NET Standard and .NET Framework Assemblies](https://docs.telerik.com/devtools/document-processing/introduction#available-assemblies)
101+
- [PdfStreamWriter]({%slug radpdfprocessing-formats-and-conversion-pdf-pdfstreamwriter-overview%})
102+
- [RadPdfProcessing]({%slug radpdfprocessing-overview%})

libraries/radpdfprocessing/formats-and-conversion/pdf/pdfstreamwriter/overview.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,4 @@ If the scenario requires you to read or modify the existing page content, you sh
6969
* [Features]({%slug radpdfprocessing-formats-and-conversion-pdf-pdfstreamwriter-features%})
7070
* [PdfFormatProvider]({%slug radpdfprocessing-formats-and-conversion-pdf-pdfformatprovider%})
7171
* [PdfStreamWriter Class]({%slug radpdfprocessing-formats-and-conversion-pdf-pdfstreamwriter-pdfstreamwriter%})
72+
* [Splitting Big PDF Documents into Smaller Files Efficiently]({%slug split-big-pdf-documents%})

0 commit comments

Comments
 (0)