Hi, First of all: I haven't done any developing in Metro at all. Secondly: Do note that it's not favorable to just use .NET libraries in Metro and expecting them to work out of the box without checking compatibility. Metro has changed quite a few things.
I assume you're talking about the Stream parameter that doesn't exist in Metro, because System.IO has been replaced by Windows.Storage. iText requires the System.IO classes and does not take the Windows.Storage classes, making a quick use of the .NET library in the Metro environment impossible. Do note that Metro works in a sandbox, accessing the filesystem works differently than in a .NET environment. My suggestions: Try googling for a workaround for the System.IO classes in Metro, like a 3rd party library or some sample code. Or you could try adding the System.dll and mscorlib.dll to your project. Not guaranteed to work. Kind regards, Michael. Op 18/07/2012 8:14, Farhan Ghumra schreef: > I am trying to create PDFs from a C# Metro App, but > PdfWriter.GetInstance() requires some arguments which is not available > in WinRT. > > I am following this > <http://www.mikesdotnetting.com/Article/80/Create-PDFs-in-ASP.NET-getting-started-with-iTextSharp> > article. I know server.mappath() is not to use but I can't pass > arguments in PdfWriter.GetInstance() method. > > Any help would be EXTREMELY appreciated! > > Please give me any simple demo for WinRT application which shows > conversion of text into PDF files. > > -- > Farhan Ghumra > Simform Solutions Pvt. Ltd. > Windows 8 Metro Style App Developer > > +91 94266 63586 > +91 97254 63586 > +91 74057 49752 > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > _______________________________________________ > iText-questions mailing list > iText-questions@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/itext-questions > > iText(R) is a registered trademark of 1T3XT BVBA. > Many questions posted to this list can (and will) be answered with a > reference to the iText book: http://www.itextpdf.com/book/ > Please check the keywords list before you ask for examples: > http://itextpdf.com/themes/keywords.php > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php