Answered by:
iTextSharp equivalent for metro?

Question
-
I tried to follow the following article.
http://www.mikesdotnetting.com/Article/80/Create-PDFs-in-ASP.NET-getting-started-with-iTextSharp
But it seems that it is not compatible with metro.
Is there a free library to create pdf document like iTextSharp that is compatible with metro?
Wednesday, November 13, 2013 4:31 AM
Answers
-
As I said, I cannot make recommendations on 3rd party libraries.
I knew this had been discussed previously and attempted to be helpful by pointing that out to you. As you pointed out, you did find several recommendations from the community for 3rd party libraries, just none that met your licensing needs. It is possible that what you want does not exist for free.
--Rob
- Marked as answer by Anne Jing Tuesday, November 26, 2013 7:52 AM
Friday, November 15, 2013 9:04 PMModerator
All replies
-
There are several 3rd party PDF libraries, but I don't know their licensing terms. If you search the forum you'll find a number of threads with suggestions.
Microsoft cannot make specific recommendations.
--Rob
- Edited by Rob Caplan [MSFT]Microsoft employee, Moderator Friday, November 15, 2013 9:05 PM clarification
Wednesday, November 13, 2013 5:10 AMModerator -
I don't mean to sound ungrateful, but have you tried to do a search yourself? I have spent perhaps 2 hours searching and still couldn't find what I'm looking for. everything that turned up are either not free or are not compatible with metro.
Pdfsharp, itextsharp, and half a dozen other libraries I found are not compatible. Syncfusion, componentone, etc. Are not free.
Just treat me as a dummy. Can you name me one that is free to point me at the right direction?
Friday, November 15, 2013 2:18 PM -
I cannot make any specific recommendations, but when I typed PDF in the "Search forum topics" box at the top of the page I got several pages of hits. Browsing through them found a number of recommendations from community members for 3rd party PDF libraries. I didn't look at the licenses: you'll have to do that yourself to find one that works for you.
--Rob
- Edited by Rob Caplan [MSFT]Microsoft employee, Moderator Friday, November 15, 2013 6:31 PM
Friday, November 15, 2013 3:35 PMModerator -
Ok, let's go through the threads and recommendations.
Type in "PDF" in the search bar above.
First thread is http://social.msdn.microsoft.com/Forums/windowsapps/en-US/e88d62a0-9e3d-416a-81c9-040f25ba04cd/pdf-to-stream?forum=winappswithcsharp The last 2 posts recommends the new 8.1 api, which is only for viewing. You can't create or edit with it.
The 2nd thread is http://social.msdn.microsoft.com/Forums/windowsapps/en-US/44be3067-0af5-4056-a4f3-f02ab1781e53/how-to-display-pdf-thumbnails-and-launch-pdThe f-viewer?forum=winappswithhtml5 It is about displaying the pdf in a thumb nail. Again, the recommendations don't really help me.
The 3rd thread is http://social.msdn.microsoft.com/Forums/windowsapps/en-US/4bafa496-4ddb-4789-8f66-bf1b530d35d6/open-pdf-file?forum=winappswithcsharp The last post recommends the new 8.1 renderer for pdf. Does not create or edit.
The 4th thread is http://social.msdn.microsoft.com/Forums/windowsapps/en-US/eaba13f0-f405-4f9a-bce9-b2d0198421c3/how-to-show-pdf-in-webview?forum=winappswithcsharp Again with rendering, not actually creating or editing.
At this point, I would like to point out that if you google search "windows rt c# create pdf" half of the results will be about how to create an app that reads blogs. This makes me wonder. I am an engineer. A group of us is considering recommending the company to buy a surface 2 for everyone to make the workflow faster and easier. I'm working on a software that helps. Isn't this what it's all about with the surface 2? MS has been trying to convince us that the surface is more than just a blog and facebook reader. Why is MS so keen on making it a blog reading device then?
Anyway, onto other threads of the search.
The 5th thread is http://social.msdn.microsoft.com/Forums/windowsapps/en-US/46f26e50-5e66-49a6-95cf-a95bf8248a5b/display-and-edit-pdf-file?forum=winappswithcsharp Here someone is actually asking about editing and saving a pdf document. The first recommendation is syncfusion, which costs thousands of dollars to buy the license for. ComponentOne is also recommended. Again, it is not a free library. MUPDF for winrt is also recommended. This thing only shows pdf. You can't create or edit with it.
The 6th thread http://social.msdn.microsoft.com/Forums/windowsapps/en-US/7c6d46f7-8a8c-4709-bf03-92752878bfad/how-to-print-pdf-in-winrt?forum=winappswithcsharp is about printing a pdf file.
The 7th thread http://social.msdn.microsoft.com/Forums/windowsapps/en-US/64cbfea0-0b14-4d43-8102-7c7b4c607594/inapp-pdfs-for-windows-8?forum=winappswithcsharp is also about rendering. All the recommendations are for non-free libraries.
More of the same with threads 8 and 9.
Thread 10 is actually about generating a pdf. http://social.msdn.microsoft.com/Forums/windowsapps/en-US/dbb2c258-ef75-48b9-8e6a-7f989af9ae4f/genate-pdf-file?forum=winappswithcsharp The 2nd post tells the person to do a search first and linked to another thread. http://social.msdn.microsoft.com/Forums/windowsapps/en-US/416c4885-7381-424a-8b7e-5fb3674e03fc/programmatically-create-word-or-pdf-documents?forum=winappswithcsharp The linked thread has several recommendations, including iTextSharp and GemBox, none of which is compatible with windows RT.
The next thread is http://social.msdn.microsoft.com/Forums/windowsapps/en-US/00b50ac8-aace-4698-ac01-2db950c780c7/how-to-generate-pdf-or-doc-from-image-in-windows-rt?forum=winappswithcsharp and the recommendations are syncfusion and componentone. Also another dead-end thread.
The next several threads are about making a pdf reader.
Then we come to http://social.msdn.microsoft.com/Forums/windowsapps/en-US/00b50ac8-aace-4698-ac01-2db950c780c7/how-to-generate-pdf-or-doc-from-image-in-windows-rt?forum=winappswithcsharp which is about exporting to pdf in windows 8 app. Despite the obvious question, which is generating a pdf document, the last post links to a way to view it. No help at all.
The rest of the posts in the first page again are about viewing pdf. None of the answers actually says anything about generating or editing a pdf document.
Would you like me to go on to the other pages in the search? Like I said, I have spent hours searching before I dared to ask a question on here. I know how you IT professionals hate questions from us non-IT folks. But please do try to be patient with us idiots.
Friday, November 15, 2013 8:40 PM -
As I said, I cannot make recommendations on 3rd party libraries.
I knew this had been discussed previously and attempted to be helpful by pointing that out to you. As you pointed out, you did find several recommendations from the community for 3rd party libraries, just none that met your licensing needs. It is possible that what you want does not exist for free.
--Rob
- Marked as answer by Anne Jing Tuesday, November 26, 2013 7:52 AM
Friday, November 15, 2013 9:04 PMModerator