Using gdpictureDocumentConverter As New GdPictureDocumentConverter()
gdpictureDocumentConverter.LoadFromFile("input.jpg", GdPicture14.DocumentFormat.DocumentFormatJPEG)
gdpictureDocumentConverter.PdfUseDeflateOnJPEG = True
gdpictureDocumentConverter.SaveAsPDF("output.pdf", PdfConformance.PDF1_7)
End Using
using (GdPictureDocumentConverter gdpictureDocumentConverter gdpictureDocumentConverter = new GdPictureDocumentConverter())
{
gdpictureDocumentConverter.LoadFromFile("input.jpg", GdPicture14.DocumentFormat.DocumentFormatJPEG);
gdpictureDocumentConverter.PdfUseDeflateOnJPEG = true;
gdpictureDocumentConverter.SaveAsPDF("output.pdf", PdfConformance.PDF1_7);
}