利用GroupDocs.Conversion
string imagePath = Parentpath+"\\Resources\\"+ PictureBox.Tag.ToString();
string sTemplate = string.Empty;
Assembly assembly = Assembly.GetExecutingAssembly();
string resourceName = assembly.GetName().Name.ToString() + ".Resources." + PictureBox.Tag.ToString();
//testImage();
//this.getStringResource(PictureBox.Tag.ToString());
Console.WriteLine("path:"+imagePath);
using (var converter = new GroupDocs.Conversion.Converter(imagePath))
{
PdfConvertOptions options = new PdfConvertOptions();
if (options == null) return;
converter.Convert(outputFile, options);
}