You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by "Vassallo, Fabio" <Fa...@wuerth-phoenix.com> on 2017/05/16 06:53:22 UTC

Text alignment and wrapping

Good morning.

As PDFBox doesn't support tables (and I need to write tables in documents) I've created the class infrastructure to do it (cells, rows, etc.).
I've also managed the text alignment and wrapping inside each cell.

Now I had a doubt: does PDFBox already manage the alignment and wrapping inside a rectangular region.
In other words, did I reinvented the wheel or not?

Thank you,
Fabio


Fabio Vassallo
Product Development (CIS)

[cid:image001.png@01D18B3E.92F52E70]
Würth Phoenix S.r.l.
via Kravogl 4, 39100 Bolzano
T: +39 0471 564 116
F: +39 0471 564 122
Website<http://www.wuerth-phoenix.com/> | e-Mail<ma...@wuerth-phoenix.com> | Map<https://www.google.de/maps/place/Wuerth+Phoenix+S.R.L./@46.474192,11.33141,15z/data=!4m2!3m1!1s0x0:0x98a5db69edb2a02?hl=en>

[twitter-2]<https://twitter.com/WuerthPhoenix>  [wordpress-2] <http://www.neteye-blog.com/>   [linkedin] <https://www.linkedin.com/company/wuerth-phoenix>   [youtube] <https://www.youtube.com/user/WuerthPhoenix>   [http://feng-shui-web.net/blog2/wp-content/uploads/2016/02/xing-icon.png] <https://www.xing.com/companies/w%C3%BCrthphoenixsrl>   [facebook] <https://www.facebook.com/wuerthphoenix>


Re: Text alignment and wrapping

Posted by Maruan Sahyoun <sa...@fileaffairs.de>.
Hi,

> Am 16.05.2017 um 08:53 schrieb Vassallo, Fabio <Fa...@wuerth-phoenix.com>:
> 
> Good morning.
>  
> As PDFBox doesn’t support tables (and I need to write tables in documents) I’ve created the class infrastructure to do it (cells, rows, etc.).
> I’ve also managed the text alignment and wrapping inside each cell.
>  
> Now I had a doubt: does PDFBox already manage the alignment and wrapping inside a rectangular region.
> In other words, did I reinvented the wheel or not?

no PDFBox doesn't provide that yet. There is code to handle text wrapping and alingment for interactive form fields but that's not part of the public API.

There are some other libs sitting on top of PDFBox such as boxable that do provide that.

BR
Maruan

>  
> Thank you,
> Fabio
>  
>  
> Fabio Vassallo
> Product Development (CIS)
> 
> 
> 
> 
> Würth Phoenix S.r.l.
> via Kravogl 4, 39100 Bolzano
> T: +39 0471 564 116
> F: +39 0471 564 122
> Website | e-Mail | Map
> 
> 
>           


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