Support Center

Appending images to a multipage PDF.

Tony Dubose Jun 24, 2015 04:30PM EDT

I have been able to append images to an existing tif file using a filestream seak then tifencoder save for the new images to be appended. However, I have not been able to do the same thing with an existing PDF. I get an ImageProcessException on the write of the first image to be appended. The workaround that I have been able to get work is to write the images of the existing PDF to a new PDF then write the images to be appended before closing the filestream.

Is there another method to be called or another property to be set to append images to an existing PDF?

1 Data Techniques Response

Up 0 Rated Down
DTI Support  Data Techniques Employee Jun 24, 2015 04:41PM EDT

Hello,

The PDFEncoder does support writing multi pages file but with the limitation that we must written the original file to which you are appending. Due to the looseness of the PDF spec we do not support appending to random PDF files.

Thanks for your interest in our products and please let us know if you have any questions.

Sincerely,
Sean
Data Techniques Support

This question is closed to new answers.

Contact Us