Skip to main content

Convert Image to PDF - Community / GemBox.Pdf Feature Request - GemBox Support Center

It would be nice to be able to convert images to PDF. eg. for the purpose of compiling scanned documents. some may be image, some may be pdf.

Comment (1)

Mario - GemBox

As a side note, this task can already be accomplished with GemBox.Document.
For example, like the following:

var document = new DocumentModel();
var picture = new Picture(document, "input.png");
document.Sections.Add(new Section(document, new Paragraph(document, picture)));

var pageSetup = document.Sections[0].PageSetup;
pageSetup.PageWidth = picture.Layout.Size.Width;
pageSetup.PageHeight = picture.Layout.Size.Height;

var pageMargins = pageSetup.PageMargins;
pageMargins.Left = pageMargins.Right = pageMargins.Top = pageMargins.Bottom = 0;



GemBox d.o.o.

Add a comment

Please log in or register to submit a comment.

Need a password reminder?