pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject Re: resize inline images
Date Sun, 03 Mar 2019 14:14:22 GMT
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



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message