pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matteo Gamboz <gam...@medialab.sissa.it>
Subject Re: resize inline images
Date Tue, 05 Mar 2019 08:54:20 GMT
sorry, here they are
https://medialab.sissa.it/nextcloud/index.php/s/Pdn5CYFcbjoAWsp


On Sun, 03 Mar 2019 15:14:22 +0100,
Tilman Hausherr wrote:
> 
> There wasn't anything attached. You can't attach PDFs anyway, these
> must be uploaded to a sharehoster.
> 
> Tilman
> 
> Am 28.02.2019 um 17:41 schrieb Matteo Gamboz:
> > ...
> >> Please retry there strategy where you had the closing error (fix the
> >> bug I mentioned), and post enough code and upload the source and
> >> result PDFs.
> > Hi Tilman, thank you for the comments and suggestions.
> > 
> > I think I'm reaching a good point; my approach is now as follows:
> > . extend PDFStreamEngine and process all operators,
> > . when I find an Inline Image, save away its transformation matrix
> > . after finishing with the operators, I parse the page into tokens
> > . and scan through the tokens
> > . when I find the BI operator
> > . I use the transformation matrix (saved before)
> > . and generate a new image,
> > . then I substitute the BI token with the new image
> > 
> > I must yet fix the image parameters to correctly represent the new
> > image data, but it seems feasible.
> > 
> > If anyone is interested, I'm attaching my last code and an example pdf
> > that I'm trying to modify. If you spot any obvious mistake I would be
> > grateful for suggestions :-)
> > 
> > m
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> > For additional commands, e-mail: users-help@pdfbox.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Mime
View raw message