Re: [Podofo-users] Example of text removal or image extraction

2019-11-27 Thread Jacob Pedersen
Hi I think this is the way to go, rather than copying images over. Removing text could be done by either; 1. Replace chars in text draw commands with spaces. I guess it would be the simplest and fastest approach if possible. 2. Remove text draw commands (basically anything between and including

Re: [Podofo-users] Example of text removal or image extraction

2019-11-27 Thread Jacob Pedersen
Hi I got it working, I think. At least I guess a PDF with no text and images retained, that I can open in Adobe Reader. Will test further and report back if it did not after all. Thanks for the pointers so far! -Oprindelig meddelelse- Fra: Jacob Pedersen Sendt: 27. november 2019 09:06

Re: [Podofo-users] Example of text removal or image extraction

2019-11-27 Thread Pietro Paolini
Hi, I have done something of that sort where I did filter out a few text instructions from the stream, this can be done in this manner. Suggestion to improve the following are more than welcome, particularly the fact that I have to append spaces to strings. char * buffer = new char[ page