使用ABCPdf删除还是隐藏PDF层? [英] Remove or hide PDF layer using ABCPdf?

查看:111
本文介绍了使用ABCPdf删除还是隐藏PDF层?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用ABCPdf或其他框架从PDF中删除或隐藏图层?

Is is possible to remove or hide a layer from a PDF using ABCPdf or another framework?

推荐答案

以下C#示例显示如何删除第1页的第2层:

The following C# example shows how layer 2 of page 1 can be deleted:

Doc theDoc = new Doc();
theDoc.Read("source.pdf");
int thePages = theDoc.GetInfoInt(theDoc.Root, "Pages");
int thePage = theDoc.GetInfoInt(thePages, "Page 1");
int theLayer = theDoc.GetInfoInt(thePage, "Content 2");
theDoc.Delete(theLayer);

这篇关于使用ABCPdf删除还是隐藏PDF层?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆