Hy everyone,
Is there any code or library in X++ or C# which can reduce the size of SSRS report while generating PDF file through it?
Thank you
*This post is locked for comments
Hy everyone,
Is there any code or library in X++ or C# which can reduce the size of SSRS report while generating PDF file through it?
Thank you
*This post is locked for comments
Hi Rashid,
Use iText to split and merge PDF.
Document doc = new Document(PageSize.A4, 50, 50, 25, 25);
pdfWriter writer = PdfWriter.GetInstance(doc, ms);
PdfContentByte contentPlacer;
writer.SetPdfVersion(PdfWriter.PDF_VERSION_1_5);
writer.CompressionLevel = PdfStream.BEST_COMPRESSION;
string pdfFile = @"D:\Test.pdf";
PdfReader reader = new PdfReader(pdfFile);
PdfStamper stamper = new PdfStamper(reader, new FileStream(@"D:\Test1.pdf", FileMode.Create), PdfWriter.VERSION_1_5);
stamper.FormFlattening = true;
stamper.SetFullCompression();
stamper.Close();
I hope it will help you.
If you search web using keywords like "reduce the file size through c# code" you will get plenty of results . I am not aware of any way through x++ but try searching c# code which might help you.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156