Guest User

Untitled

a guest
Feb 25th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. private void btnGetAIThumb_Click(object sender, EventArgs e)
  2. {
  3. Illustrator.Application app = new Illustrator.Application();
  4. Illustrator.Document doc = app.Open(@"F:/AI_Prog/2009Calendar.ai", Illustrator.AiDocumentColorSpace.aiDocumentRGBColor, null);
  5. doc.Export(@"F:/AI_Prog/2009Calendar.png",Illustrator.AiExportType.aiPNG24, null);
  6. doc.Close(Illustrator.AiSaveOptions.aiDoNotSaveChanges);
  7. doc = null; //
  8. }
  9.  
  10. string pdf_filename = @"C:test.ai";
  11. //string pdf_filename = @"C:test.pdf";
  12. string png_filename = "converted.png";
  13. List<string> errors = cs_pdf_to_image.Pdf2Image.Convert(pdf_filename, png_filename);
Add Comment
Please, Sign In to add comment