Convert Word DOCX Document to PostScript PS File Format using C# .NET | Manage PS PostScript File Size

Hi,

I have a problem with ps file size using Aspose.Words. When I print a doc file to file (.ps), the ps document is bigger than if I print from Word to ps file.

by Word => kb1Word.PS : 164Ko

by Aspose => kb1Aspose.PS : 596Ko

We need to add postcript tag in the ps file before sending it to printer (merge, type of media input, duplex mode, stapple) and we buy aspose to replace Word (activeX) by sdk Aspose.Words.

You can find in attachement a complete C# sample using both Word and Aspose.

Thank you.

Hi there,


Thanks for your inquiry.

I’m afraid it’s hard to tell exactly why size of the Postscript generated by Adobe differs with the word and Aspose input. You may want to try using some of the options in the PdfSaveOptions class to reduce file size. For example you can reduce image quality and choose not to embed system fonts.

Also there are plans to add direct support of conversion to Postscript format in Aspose.Words. I have linked your request to the apprporiate issue. We will inform you as soon as there are any devlopments.

Thanks,

The issues you have found earlier (filed as WORDSNET-3995) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(45)

@amitel,

It is to inform you that you can now use the latest versions of Aspose.Words for .NET and Aspose.Words for Java APIs to convert Word documents directly to PostScript (PS) file format. For example, the following C# code will create a book fold in the PostScript format.

Document doc = new Document("Paragraphs.docx");

// Configure both page setup and PsSaveOptions to create a book fold
foreach (Section s in doc.Sections)
{
    s.PageSetup.MultiplePages = MultiplePagesType.BookFoldPrinting;
}

PsSaveOptions saveOptions = new PsSaveOptions
{
    SaveFormat = SaveFormat.Ps,
    UseBookFoldPrintingSettings = true
};

// In order to make a booklet, we will need to print this document, stack the pages
// in the order they come out of the printer and then fold down the middle
doc.Save("PsSaveOptions.UseBookFoldPrintingSettings.ps", saveOptions);

The PsSaveOptions Class can be used to specify additional options when saving a Word document into the PostScript (PS) format.