-2

I want to do a project in C#.I saw several online software which converts jpeg to pdf/doc/docx and vice versa.Now I want to build my own software which will dothe same thing as a hobby project.

Can someone plz guide me from where should i start?

amitabha
  • 646
  • 1
  • 9
  • 20

1 Answers1

2

Here's a good place to start! Break your code down into smaller milestones and get each part working :)

JPG to PDF Convertor in C#

 PdfDocument doc = new PdfDocument();
 doc.Pages.Add(new PdfPage());
 XGraphics xgr = XGraphics.FromPdfPage(doc.Pages[0]);
 XImage img = XImage.FromFile(source);

 xgr.DrawImage(img, 0, 0);
 doc.Save(destinaton);
 doc.Close();
Community
  • 1
  • 1
Nicholas Mordecai
  • 859
  • 2
  • 12
  • 33