1
Please, I am generating several images in a single PDF and it is running correctly. What I can’t do is leave the A4 size on the images because they’re too big, like 80% of the standard size. How can I decrease to fit on the A4? The Code is below. Grateful
iTextSharp.text.Document Doc = new iTextSharp.text.Document(iTextSharp.text.PageSize.A4, 80, 80, 80, 80);
//Salve o documento
string PDFOutput = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "C:\\Users\\Usuario\\Desktop\\imagensParaPDF\\Output.pdf");
PdfWriter writer = PdfWriter.GetInstance(Doc, new FileStream(PDFOutput, FileMode.Create, FileAccess.Write, FileShare.Read));
What the program does is read a directory where you have images . jpeg and convert them to a single PDF
– Joelias Andrade