PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Big Size create new Pdf https://forum.pdfsharp.net/viewtopic.php?f=2&t=1483 |
Page 1 of 1 |
Author: | marco.sanchez [ Wed Dec 22, 2010 1:25 pm ] |
Post subject: | Big Size create new Pdf |
Hi Guys, creating a PDF file having as origin a PDF file of 80 pages which weighs 4 MBM the new file created is only 10 pages (source file) and as a result I created a file with the same size, to open new visualize the 10 pages, as I can reduce size? Code: For intIndice As Integer = 0 To arrOrden.Length - 1 objPdfPagina = New PdfPage objPdfPaginaActual = New PdfPage objPdfPagina = objpdfdocumento.pages(Integer.Parse (arrOrden(intIndice))-1) objPdfPaginaActual = objPdfNuevoDocumento.AddPage(objPdfPagina) objPdfGrafico.Dispose() objPdfPagina.Close() objPdfPaginaActual.Close() objPdfPagina = Nothing objPdfPaginaActual = Nothing Next objPDFDocumento.Dispose() objPdfNuevoDocumento.Save("c:\mypdf.pdf")) |
Author: | () => true [ Fri Dec 24, 2010 9:02 am ] |
Post subject: | Re: Big Size create new Pdf |
marco.sanchez wrote: as I can reduce size? Use a Release build, not a Debug build. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |