In a WinRT app, i can create a word file with some information filled by the user, but i also want to create a copy but as PDF(save another file with my app, not convert docx. to pdf with external software)

Any straight forward way of doing this?

  • 1
    You say you can "create a word file". Can you clarify what you mean and how you're doing this? As far as I know this isn't possible in WinRT so I'm curious as to what you mean. Do you mean RTF? – roryok Jan 7 '15 at 9:24

You can check out a WinRT Commercial SDK that has the ability to save out PDF files such as the LEADTOOLS WinRT SDK. This SDK gives you the ability to easily save a file out as a PDF as well as many other formats such as :

JPEG, JPEG 2000, PNG, TIFF, PDF, & GIF

Here is some simple sample code on how to save out a file using the RasterCodecs SaveAsync class:

await codecs.SaveAsync(_originalImage, leadStream, RasterImageFormat.RasPdf, 24);

You can download a free 60-day evaluation of the SDK which includes fully sourced sample programs that show how to achieve various functionality using the SDK.

Just as a disclaimer, I am an employee of this library.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.