问题描述
我已经开发了一个.net应用程序,可以将多个InDesign文档转换为pdf ......
在将indd文档转换为pdf时出现了错误...
我的错误是
错误CS0103:当前上下文中不存在名称'idExportFormat'
错误CS0103:当前上下文中不存在名称'objInDesign'
错误CS1061::“字符串”不包含“导出”的定义,也找不到找不到接受类型为“字符串”的第一个参数的扩展方法“导出”(您是否缺少using指令或组装参考?)
我使用的代码是
if (rb_indesigndoc.Checked == true)
{
MessageBox.Show("InDesign document","Toolkit");
string[] fileEntries = Directory.GetFiles(sourcefolderBrowserDialog.SelectedPath,"*.indd");
if (fileEntries.Length > 0)
{
MessageBox.Show("indesign douments found","Doument found toolkit");
foreach (string file in fileEntries)
{
string filename = System.IO.Path.GetFileName(file);
string[] docname = filename.Split('.');
string doc = docname[0];
string cstrOutputFile = txt_destinationpath.Text.ToString() + "\\" + doc + ".pdf";
doc.Export(idExportFormat.idPDFType,cstrOutputFile,false,objInDesign.PDFExportPresets["[High Quality Print]"]);
}
}
}
但是在包括要导出的这一行时,发生了上述错误。...
该行是
doc.Export(idExportFormat.idPDFType,objInDesign.PDFExportPresets["[High Quality Print]"]);
我想做什么??????????????
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)