I am having an issue with a certain PDF when trying to convert it to Tiff. Here is the PDF.
When I run the program it gives me an error of "Parameter is not valid" when trying to convert the last page of the PDF (the page with a image on it) at the line:
When I run the program it gives me an error of "Parameter is not valid" when trying to convert the last page of the PDF (the page with a image on it) at the line:
img.SaveAdd(page, GetAddPageEncoderParameters());
Where private EncoderParameters GetAddPageEncoderParameters()
{
var encoderParams = new EncoderParameters(2);
encoderParams.Param[0] = new EncoderParameter(Encoder.Compression, GetEncoderCompressionValue(_settings.Compression));
encoderParams.Param[1] = new EncoderParameter(Encoder.SaveFlag, (long)EncoderValue.FrameDimensionPage);
return encoderParams;
}
Thanks