Using C# and PDFsharp to quickly convert JPG images to PDFs.
The latest code is available at …(read more)
Convert Word 2 PDF: Word to PDF Converter
Convert PowerPoint 2 PDF: PPT to PDF Converter
Convert Excel 2 PDF: Excel to PDF Converter
Convert an Image 2 PDF: Image to PDF Converter
Convert HTML 2 PDF: HTML to PDF Converter
More Tools: PDF Converter
How would you take a bitmap screenshot and convert it to pdf?
@Michael Duffy?
Hey can anyone help how we can select multiple images to Convert Multiple pdf
thank you Michel, Do you have the code in vb
Thank you Michael
Michael, thanks you so much for this video
How do I save a multi page image to a multi page PDF? i cant do it plz help me!!
can we do pdf to tiff using pdfsharp?
Hi,
How can we convert tiff to pdf?. Could you please make a video on this.
Please help,
Whenever I debug I get this:
System.UnauthorizedAccessException: 'Access to the path 'E:PDFSharp' is denied.'
How do I authorize it to have access to the E drive?
Hi sir,
This libraries free or charge?
Thanks
I received a notification in email that a question had been asked about rotation and maintaining aspect ratio, but that question seems to no longer be here. Someone may find it helpful, so I'll answer anyway. Aspect ratio can be maintained by keeping the width and height arguments to the DrawImage method at the same ratio as the original image. Rotation can be achieved by methods on the XGraphics object (called gfx in the project) and using either the RotateTransform or RotateAtTransform method immediately before the call to DrawImage(). Some experimentation may be needed to get the desired result.
Thank you very much! I had been looking for this for a week.
Tnq soo much sir u helped me a lotttt
Great job! I have the issue that my images not scale to pdf format, so they are cutted. Any suggestion? thanks
Great help to me, thank you. Edit: I am creating jpgs in a folder and already know the file names. It's a console app – called from a batch file. Won't need a gui. Am trying to figure it out now – if there's any input from anyone it would be appreciated.
How can you make the PDF page size be the same as the image? I was following your example with some screenshots as sample images and my result ended up with a PDF that displayed some skewed images.
What if my image is more than 1 page? How do I save a multi page image to a multi page PDF?
Is it possible to save it in Din A5 ?
awesome <3