如何获取PDF文档页面内容的颜色......? [英] How to get Color of Page Content of PDF document...?

查看:441
本文介绍了如何获取PDF文档页面内容的颜色......?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们...... :-)



我是否遇到了无论是否找不到任何解决方案的问题。



我正在制作一个程序(使用VB.NET的桌面应用程序),它可以单独或批量输入WORD和PDF文档。



我必须根据输入文件中的某些条件删除几页,并将该文件另存为NEW FILE。 WORD文档的部分已经完成。我使用Word的Interop DLL来完成它(在VB.NET中首次使用VBA for Word时的良好体验,并且我仍然成功)。



对于PDF文档...

我将设置一个逻辑来检测具有不同颜色的特定页面(页面上的任何位置)除了黑色。





首先..我认为iTextSharp将是我的答案,但当我尝试编码时,我失败了。我在不同的搜索引擎上做了一些搜索,但没有得到它的解决方案。





所以... ..如果有人知道 如何检测PDF文档页面内容的颜色...... ??





如果您对iTextSharp或任何其他F / OSS库有任何解决方案,我们将不胜感激。



帮助我..: - )

解决方案

使用PDF Sharp这样的东西:

< a href =http://pdfsharp.net/> http://pdfsharp.net/ [ ^ ]

Hi Friends...:-)

I have stuck in program whether I don't find any solution for it.

I'm making a program (Desktop Application using VB.NET) which takes input as WORD and PDF Document either single or in bulk.

I have to delete few pages depend on some conditions in inputted file and save that file as NEW FILE. The part of WORD document is already done. I use Word's Interop DLL to get it Done (Nice Experience while using "VBA for Word" in VB.NET for First Time & still I Succeed in that).

For PDF Document...

I am going to Set a Logic that Detect Particular Pages which has Different Color (anywhere on a Page)other than BLACK.



Firstly.. I think iTextSharp will be my Answer, but when I try to code it I failed. I do some "Search" on different Search Engines for this, but don't get the solution for it.


So....Please If any one knows "How to Detect a Color of Page Content of PDF document...??"


If you have any solution with iTextSharp or any other F/OSS library will be appreciated.

Help me..:-)

解决方案

Use some thing like PDF Sharp:
http://pdfsharp.net/[^]


这篇关于如何获取PDF文档页面内容的颜色......?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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