Quantcast
Channel: Ghostscript.NET
Viewing all articles
Browse latest Browse all 393

New Post: Parameter is not valid

$
0
0
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:
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

Viewing all articles
Browse latest Browse all 393

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>