0

My Mainpage.cs:

public class imagesPDF
{     
    public static void main(String arg[])throws Exception
    {                  
        Document document=new Document();
        PdfWriter.getInstance(document,new FileOutputStream("YourPDFHere.pdf"));
        document.open();
        Image image = Image.getInstance ("yourImageHere.jpg");
        document.add(new Paragraph("Your Heading for the Image Goes Here"));
        document.add(image);               
        document.close();
    }
}

I tried, but I couldn't do that find a solution. I want to convert an image to a PDF and Word document file in a UWP (Universal Windows) application? How do I do that?

Quality Catalyst
  • 6,531
  • 8
  • 38
  • 62
Azarudeen
  • 19
  • 6

0 Answers0