How cai i set the zindex of PrimitiveComposer, so that my composer covers originals parts of pdf with pdfclown?
this is my part of code:
entities.Image image = entities.Image.Get(Directory.GetCurrentDirectory() + Path.DirectorySeparatorChar + "images" + Path.DirectorySeparatorChar + "blank.jpg"); // Abstract image (entity).
// Show the image inside the common content stream!
composer.ShowXObject(
image.ToXObject(document),
new PointF(0, 0),
new SizeF(
(float)455,
425
)
);
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In order to add content on foreground you have to use the PageStamper class ; please see the PageNumberingSample contained in the downloadable distribution.
Anyway, concealing contents through overlay is an awkward and ineffective practise: underlying contents can be easily detected and retrieved with most of the file readers out there. You have to remove them in the first place!
How cai i set the zindex of PrimitiveComposer, so that my composer covers originals parts of pdf with pdfclown?
this is my part of code:
entities.Image image = entities.Image.Get(Directory.GetCurrentDirectory() + Path.DirectorySeparatorChar + "images" + Path.DirectorySeparatorChar + "blank.jpg"); // Abstract image (entity).
// Show the image inside the common content stream!
composer.ShowXObject(
image.ToXObject(document),
new PointF(0, 0),
new SizeF(
(float)455,
425
)
);
In order to add content on foreground you have to use the PageStamper class ; please see the PageNumberingSample contained in the downloadable distribution.
Anyway, concealing contents through overlay is an awkward and ineffective practise: underlying contents can be easily detected and retrieved with most of the file readers out there. You have to remove them in the first place!
http://clown.sourceforge.net/docs/api/org/pdfclown/tools/PageStamper.html