【发布时间】:2017-03-21 07:25:46
【问题描述】:
我正在尝试使用 Websupergoo ABCpdf 将 PDF 转换为灰度(黑白)PDF。
我指的是
Doc theDoc = new Doc();
theDoc.Read(Server.MapPath("src.pdf"));
int pages = theDoc.PageCount;
MyOp.Recolor(theDoc, (WebSupergoo.ABCpdf8.Objects.Page)theDoc.ObjectSoup[theDoc.Page]); //Here problem
theDoc.Save(Server.MapPath("greyscale1.pdf"));
theDoc.Clear();
以上代码适用于单页 PDf。
此代码仅转换 PDF 的第一页
当我尝试使用循环时,出现以下错误
【问题讨论】:
-
当您的问题与其他产品有关时,请不要使用
itext标记您的问题。
标签: abcpdf