asked on September 22, 2014
Hello,
I am useing SDK 8.3 to export photographs to PDF. Most images are a reasonable size, however some result in gigantic pdf's; 25" by 19" and over 5MB.
How can I force the output to a KB, Resolution, or page size?
I don't want to max the CompressionQuality because not all the images are huge.
I've tried to use "exporter.PdfPageSize = PdfPageSize.Halfletter;" but it seemed to do nothing.
Here is my current Code..
DocumentInfo docInfo = Document.GetDocumentInfo(Int32.Parse(fileID, System.Globalization.NumberStyles.AllowThousands), session);; DocumentExporter exporter = new DocumentExporter(); exporter.IncludeAnnotations = true; exporter.BlackoutRedactions = true; exporter.PageFormat = DocumentPageFormat.Jpeg; exporter.CompressionQuality = 90; exporter.ExportPdf(docInfo, docInfo.AllPages, PdfExportOptions.IncludeText, strLocalPath + strDocumentFILE);
Thanks for any insight.
1
0