pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chitgoks <chitg...@gmail.com>
Subject Re: drawing arrow in content stream
Date Sun, 20 Aug 2017 06:34:07 GMT
hi maruan here

https://www.dropbox.com/sh/f5zfhh00jhab48n/AABMJ4wpqeyNrmRFhKQPh_Gfa?dl=0

all annotations are created with pdfbox

there are 2 arrows , 1st is a line dimension (shows only 1 arrow head since
i dont know yet how to draw the first point arrow head). 2nd one is an
arrow.

the inklist, rectangle shape are code generated from your ShowAnnotation
sample. though i noticed that they also do not have padding which in the
inklist side, shows the top part somehow a bit cut off


Website/Java Games: http://www.chitgoks.com
My Blogs:
http://tech.chitgoks.com
http://wuhtevah.chitgoks.com
http://disneyusa.blogspot.com

On Sun, Aug 20, 2017 at 1:06 AM, Maruan Sahyoun <sahyoun@fileaffairs.de>
wrote:

> Hi,
>
> > Am 19.08.2017 um 03:31 schrieb chitgoks <chitgoks@gmail.com>:
> >
> > i hope you guys can make this work
> >
> > this would flat out beat out other libraries.
> >
>
> would it be possible to get a sample PDF you've created with the line
> annotation?
>
> BR
> Maruan
>
> >
> >
> > On Sat, Aug 19, 2017 at 12:40 AM, Maruan Sahyoun <sahyoun@fileaffairs.de
> >
> > wrote:
> >
> >>
> >>> Am 18.08.2017 um 18:22 schrieb Tilman Hausherr <THausherr@t-online.de
> >:
> >>>
> >>> Am 18.08.2017 um 06:49 schrieb chitgoks:
> >>>> Hi tilman
> >>>>
> >>>> http://imgur.com/a/Dp0tU
> >>>
> >>> You can confirm what Maruan wrote by doing this: take an existing PDF
> >> file and open it with Adobe Reader. It allows to make annotations. So
> make
> >> an arrow annotation from visible point 1 to visible point 2. Then save
> that
> >> file. Then open that file with PDFBox and look at the annotation
> >> dictionary. Its rectangle will be wider than the rectangle that would be
> >> made from point 1 to point 2.
> >>>
> >>> No idea why Adobe does this.
> >>
> >> it's common that there is an 'outer box', padding and a 'content area'.
> >> That's consistent e.g. also done when looking at fields. It makes sense
> as
> >> an annotation could also have a border around it which would be drawn
> from
> >> the 'outer' box to the inside. So the padding helps the content to stay
> >> away from it.
> >>
> >> Although there isn't a box model similar to HTML/CSS - at least not
> >> specified as part of the spec - for appearance streams there is one in
> >> practice. It needs some reengineering to get to the logic behind it (we
> did
> >> it for interactive forms).
> >>
> >> BR
> >> Maruan
> >>
> >>>
> >>> Tilman
> >>>
> >>>
> >>>
> >>>
> >>>>
> >>>>
> >>>>
> >>>> On Fri, Aug 18, 2017 at 12:46 PM, Tilman Hausherr <
> >> THausherr@t-online.de>
> >>>> wrote:
> >>>>
> >>>>> Am 18.08.2017 um 03:55 schrieb chitgoks:
> >>>>>
> >>>>>> please see attached
> >>>>>>
> >>>>> Please upload to a sharehoster and post the link.
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>> ------------------------------------------------------------
> ---------
> >>>>> 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
> >>>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message