I know that PDFs can be converted to PS (PostScript) using Aspose.Words, or using an external Printer-Driver to do the conversion.
But why is there no direct way to convert PDF to PS using Aspose.PDF?
When using Aspose.Words to convert a PDF to PS, does Aspose.Words change the formatting of the PDF, if the PDF uses formattings which do not have a 1:1 representation in Microsoft Word?
@Markus1980Wien
We are gathering information related to your above inquiry and will get back to you soon.
We are also moving next part of the query to Aspose.Words category where you will be assisted accordingly.
@Markus1980Wien
Please note that Word and PDF file formats are quite different. There may be some difference in output when you convert Word to PS and PDF to PS using Aspose.Words.
To ensure a timely and accurate response, please attach the following resources here for testing:
- Your input document.
- Please attach the output file that shows the undesired behavior.
- Please attach the expected output file that shows the desired behavior.
- Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.
As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.
PS: To attach these resources, please zip and upload them.
This was a question without a special document in mind.
I just wanted to know why Aspose.Pdf does not support the conversion into PS format (while the other way [convert PS to PDF] is supported.
And as you wrote, Word and PDF are quite different, using Aspose.Words to convert a PDF to PS is not generelly recommended, because there may be a different layout in the resultant PS-File.
@Markus1980Wien
We are investigating the reasons why direct conversion from PDF to PS is not supported in the Aspose.PDF and will share with you soon.
@Markus1980Wien
It is to share with you that Aspose.PDF for .NET cannot share direct conversion of PDF to PS due to usage of .NET Framework API from System.Drawing.dll
this answer sounds unconvincing to me, because Aspose.Words is able to convert a PDF to PS File, while Aspose.PDF isn’t.
@Markus1980Wien
We have logged an investigation ticket as PDFNET-49745 to determine the reasons behind this limitation of the API. We will let you know once the ticket is resolved. Please give us some time.
@Markus1980Wien
Aspose.PDF supports converting PDF documents to PS and EPS files directly. Please see the PsSaveOptions class.
// For complete examples and data files, visit https://github.com/aspose-pdf/Aspose.PDF-for-.NET
private static void SaveDocument()
{
// The path to the documents directory
var dataDir = RunExamples.GetDataDir_AsposePdf();
// Open PDF document
using (var document = new Aspose.Pdf.Document(dataDir + "SimpleResume.pdf"))
{
// Save PDF document as PS file
document.Save(dataDir + "SimpleResume_out.ps", new Aspose.Pdf.PsSaveOptions());
}
}