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.
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.
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.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.