Hi,
How can I generate pdf page image without it’s text in performant way.
For now I’m using a very slow approach:
finding all text via TextFragmentAbsorber, then setting all fragments to empty string,
then sending the pdf to PngDevice. After, I rollback all changes.
* Tried setting foreground color to transparent, but it didn’t work in all cases.
There are two issue with that approach:
1) Each text set, is taking to long, it seems like a very intensive operation.
2) All aspose absorbers are crashing in multi-threaded environment. even if two unrelated PdfDocuments are running TextFragmentAbsorber simultaneously, sometimes I get a very unexpected crushes in different stages of Aspose.Pdf code, it is not consistent.
Required me to add a locking mechanism above that prevents two Absorbers to run under the same process (Very Slow)
2) All aspose absorbers are crashing in multi-threaded environment. even if two unrelated PdfDocuments are running TextFragmentAbsorber simultaneously, sometimes I get a very unexpected crushes in different stages of Aspose.Pdf code, it is not consistent.
Required me to add a locking mechanism above that prevents two Absorbers to run under the same process (Very Slow)
Please advise,
Thanks