Free Support Forum - aspose.com

Compression while converting from Word to PDF

Hi,

I have a requirement, where I have to covert a word document into PDF, for that purpose Iam using following code

Aspose.Words.Document doc1 = new Aspose.Words.Document(FileUpload1.PostedFile.InputStream);

doc1.SaveToPdf(Server.MapPath("~") + @"\Temp\p1.pdf");

Now, here I want to achieve compression.

Actually Iam converting multiple word document into PDF and clubbing all those into single PDF.

MyFinal.pdf=p1.pdf+p2.pdf+p3.pdf+p4.pdf

Each of these (p1,p2,p3,p4) docuemnt coverted to PDF from Word

My primary goal is to reduce the size of MyFinal.pdf.

If I can reduce or compress the size of each of these file(p1..p4) then automatically the size of final PDF will be reduced.

Please suggest, Is it possiable to compress PDF, using Aspose.Word?

Thanks

Siraj

I wan to reduce the size of PDF.

I want to know is there is any way to compress the p1.pdf file?

Thanks

Siraj

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. I just answered this question here:

http://www.aspose.com/community/forums/thread/206237/re-compress-pdf.aspx

Best regards,