I m试图利用......生产一个PDF。 NET(使用PDF4NET或iTextSharp,但不关闭)或C(CGContextXXX,CGPDFXXX等)。 但是,如果不保持看不见的内容,!
目前,Im能够利用作物箱或Clip区进行作物经营,但所有内容仍见于PDF。
是否可能?
感谢(和 s, I m french...)
I m试图利用......生产一个PDF。 NET(使用PDF4NET或iTextSharp,但不关闭)或C(CGContextXXX,CGPDFXXX等)。 但是,如果不保持看不见的内容,!
目前,Im能够利用作物箱或Clip区进行作物经营,但所有内容仍见于PDF。
是否可能?
感谢(和 s, I m french...)
http://www.amyuni.com/en/developer/pdfcreator/features.html” rel=“nofollow noreferer”>Amyuni PDF Publishing .Net。 您可使用以下方法:rel=“nofollow noreferer” IacDocument.GetObjectsIn Rectangle,用于检索你感兴趣的所有“图表物体”:
IacDocument.GetObjectsIn Rectangle 方法
The GetObjectsInRectangle method gets all the objects that are in the specified rectangle.
之后,你可以翻开页上的所有物体,删除你不感兴趣的物体:
//open a pdf document
document.Open (testfile,"");
IacPage page1 = document.GetPage (1);
Amyuni.PDFCreator.IacAttribute attribute = page1.AttributeByName ("Objects");
// listobj is an array list of graphic objects
System.Collections.ArrayList listobj = (System.Collections.ArrayList) attribute.Value;
foreach ( object pdfObj in listobj )
{
// if pdfObj is not in the collection of interest
// then call pdfObj.Delete();
}
Update:
Amyuni PDF Creator .Net version 5.0 adds a new method IacDocument.Redact which might also be helpful in this kind of scenario:
The Redact method retrieves all the objects of the specified type in the specified rectangle, deletes them, and draws a solid color rectangle at their place.
As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...
I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...
I have two EF entities. One has a property called HouseNumber. The other has two properties, one called StartHouseNumber and one called EndHouseNumber. I want to create a many to many association ...
I m using decimal type (.net), and I want to see if two numbers are equal. But I only want to be accurate to 10 decimal places. For example take these three numbers. I want them all to be equal. 0....
I m creating an STA version of the SynchronizationContext for use in Windows Workflow 4.0. I m wondering what to do about exceptions when Post-ing callbacks. The SynchronizationContext can be used ...
I ve got some code which sets up a datacontext. Often enough, the datacontext should be set to some underlying data collection, such as an ObservableCollection - but occasionally I d like to set it ...
I am building an application with C#. I managed to turn this into a single instance application by checking if the same process is already running. Process[] pname = Process.GetProcessesByName("...
NOTE I have asked the related question (with an accepted answer): How to combine DataTrigger and Trigger? I think I need to combine an EventTrigger and a DataTrigger to achieve what I m after: when ...