Bruno Brant
Bruno Brant

Reputation: 8564

Adobe API to convert Office documents to PDF

Is there any API available by Adobe that would enable me to convert Office Documents (docx, xlsx, pptx, etc.) files to a PDF file format?

I would prefer to use .NET to do so, but if I have to I can resort to C/C++.

I've already tried using Adobe SDK, but it seems to me it works to automate the Acrobat application instead of giving me access to underlying functionality. If it's possible and anyone would care to give me an example, I'd be very thankful - after many hours googling it I was unable to find a good answer (a lot of samples doing the contrary, though - converting from PDF to Word).

One last thing, I need it to be an library from Adobe. So, PDFCreator, BCL EasyPDF, Aspose.Words/Cells/Slides etc., unfortunately, won't help me.

UPDATE 1:

I decided to ask this question in the forum because, first, I can't believe that Adobe wouldn't have a library to do this; Of course, it may be the case, but it's very strange.

UPDATE 2:

I also looked already into AdobePDFMakerX.Word interface. I tried calling the CreatePDF(string in, string out) interface, but to no avail. It always returns false, and there is no error description that I can use.

Upvotes: 2

Views: 2434

Answers (2)

Arpit Chokniwal
Arpit Chokniwal

Reputation: 111

want to convert doc file to pdf file using Adobe pdf service api

In short it has two parts:

  1. make a post request ( providing require parameters ) and from header take x-request-id
  2. make a get request ( providing require parameters ) and as responce you will get your pdf documet

it is working fine

Upvotes: 2

SajithP
SajithP

Reputation: 11

Are you sure Aspose.Words didn't work for you? I tested the below code sample and works fine.

string filePdf  = @"D:\\Projects\\original.pdf";
string fileDocX = @"D:\\Projects\\New.docx";

Aspose.Words.Document doc = new Aspose.Words.Document(fileDocX);
doc.Save(filePdf, Aspose.Words.SaveFormat.Pdf);

Upvotes: 0

Related Questions