使用vb.net或c#.net将文件夹中的多个ps文件转换为Adobe PDF



是否有任何方法可以将文件夹中的多个ps文件转换为单个Adobe Acrobat PDF。

这是我现在使用的示例代码

pdfDist.FileToPDF(pathOut & "Ctctemp.txt", pathOut & "TempTemp.pdf", "No Downsample")

upb.txt包含以下脚本,该脚本获取文件夹中的所有ps文件并尝试将其转换为

/PathName (C:/MyTemp/*.ps) def
/RunDir {
{ /mysave save def
dup = flush
RunFile
clear cleardictstack
mysave restore
}
255 string
filenameforall
} def
PathName RunDir

它与AcrobatDistiller5.0配合使用效果良好,但与AcrobateDistiller7.0不配合使用。

提前感谢

我记得我使用C#中的Acrobat Distiller(有一段时间了(,很难解决一些问题。。。

也许您可以使用此方法:生成分离的PDF文件,然后将其与PdfSharp库合并(http://www.pdfsharp.net/wiki/ConcatenateDocuments-sample.ashx)

最新更新