Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Thu May 02, 2024 1:14 am

Hello,
We are working on converting PPT and Word documents to PDF using your products.
In the following two cases, server failure is occurring due to excessive CPU use, so we are looking for a solution to this.

1. When extracting text from PDF
- PdfTextExtractor textExtractor = new PdfTextExtractor(page);
Create a PdfTextExtractOptions object
PdfTextExtractOptions extractOptions = new PdfTextExtractOptions();
String pdftext = textExtractor.extract(extractOptions);

2. when saving a PDF,
(- pdf1. saveToFile(outputfd + doc_name + "_1. pdf", FileFormat.PDF);)


I would like you to help me with the option to limit CPU usage.

SungwonShin
 
Posts: 12
Joined: Thu Dec 28, 2023 2:24 am

Thu May 02, 2024 2:46 am

Hi,

Thanks for your message.
Please provide the following information to assist us in investigating the problem:
1. Are you using multithreading? If yes, please provide the code
2. Your test files
3. Your environment (e.g. CentOS7 RAM16GB)

You can also sending above information to our e-mail '[email protected]', look forward to your response!

Sincerely,
Doris
E-iceblue support team
User avatar

Doris.Liu
 
Posts: 460
Joined: Mon Nov 07, 2022 8:10 am

Return to Spire.PDF