Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hello,
I want to upload .Docx or .Jpg file in VB.NET then it will convert Docx or JPG file into PDF File. How to achieve that?
Thanx in Advance....
Posted
Updated 28-May-13 19:16pm
v2
Comments
_Amy 29-May-13 1:30am    
Did You google?
Archana K 29-May-13 1:36am    
yes... but did't get solution :(

You can read JPEG using the class System.Drawing.Bitmap:
http://msdn.microsoft.com/en-us/library/system.drawing.bitmap.aspx[^].

As to Word documents, you can either use Office Interop assembly of appropriate version (only available if Office is installed), or Open XML SDK: :
http://www.microsoft.com/en-us/download/details.aspx?id=30425[^].

This way, you can support new XML-based Office formats (such as .DOCX, .XLSX), ECMA-376 standard:
http://en.wikipedia.org/wiki/Microsoft_Office_XML_formats[^],
http://en.wikipedia.org/wiki/Office_Open_XML[^].

This is another option: http://npoi.codeplex.com/[^].

To work with PDF, use iText, or its .NET port, iTextSharp:
http://en.wikipedia.org/wiki/IText[^],
http://itextpdf.com/[^],
http://sourceforge.net/projects/itextsharp/[^].

In included the reference to Java iText site as well, because most documentation is there. If you understand C#, it would not be difficult to understand Java-bases API documentation.

—SA
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 29-May-13 8:34am    
Are you serious?

First of all, there is no one-to-one correspondence between the format; the ideas of them are very different, so you need to create some mapping suitable for your purpose. And do you understand how much work do you want to be done for you? You are probably looking at the wrong site.

—SA
Did you google this at all? One of the first answers: how to create pdf file in vb.net[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900