String inAiFilePath = "rect2_color.ai"; String outPdfFilePath = "rect2_color.ai_output.pdf"; // Load a regular AI file AiImage aiImage = (AiImage)Image.load(inAiFilePath); try{ // Export the loaded AI file to the PDF file format with default options aiImage.save(outPdfFilePath, new PdfOptions()); }finally{ aiImage.dispose(); }