Created
June 3, 2016 11:55
-
-
Save Polaringu/3c87e1cb654eb24b6d6f06f01f4cbcdb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Inst.AddPluginFromFile("D:\\PDFAPlugin.pvp"); | |
private void saveAsPDFAToolStripMenuItem_Click(object sender, EventArgs e) | |
{ | |
PDFXEdit.IPXV_ExportConverter cnv = null; | |
for (uint i = 0; i < pdfCtl.Inst.ExportConvertersCount; i++) | |
{ | |
if (pdfCtl.Inst.ExportConverter[i].ID == "conv.exp.pdfa") | |
cnv = pdfCtl.Inst.ExportConverter[i]; | |
} | |
if ((cnv == null) || (pdfCtl.Doc == null)) | |
return; | |
PDFXEdit.ICab cab = pdfCtl.Inst.GetFormatConverterParams(false, "conv.exp.pdfa"); | |
PDFXEdit.IString name = pdfCtl.Inst.CreateString("D:\\TestFile_res.pdf"); | |
pdfCtl.Doc.Save(name, 0, null, cnv, cab); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment