SuperMENG wrote:
I attempted to utilize C# multithreading to process a PDF document, where each thread handles a separate page and then combines them.
PDFsharp was designed to support document creation with only a single thread per document, but multiple threads creating individual documents at the same time.
With your approach of using multiple threads for a single document, you may encounter problems.
Adding an image to a PDF requires adding several objects to the PDF. Several pages can share the same image.