You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Baskar Murugan <ba...@gmail.com> on 2019/12/16 07:22:36 UTC

Alignment Issue

Hi Team,

I've found some PDFs where if you just type in a value in PDF reader, it
will be left-aligned, but if we use pdfbox to set the value in the form,
the text is center-aligned.

I checked form field properties, It showing alignment as left
(formField.png)

Since we're not specifying any alignment information, I don't know why this
would be happening.

Re: Alignment Issue

Posted by Tilman Hausherr <TH...@t-online.de>.
I got your file through moderation and it works for me, here's with 
field "Player 1" set

http://www.filedropper.com/line-up-22-saved_1

Tilman


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


Re: Alignment Issue

Posted by Charles Patterson <cp...@planalytics.com>.
Hi,

By a shared host, Tilman is referring to an online file-sharing service.
Some examples of these are the following:

Google Drive (drive.google.com)
Dropbox (dropbox.com)
Box (box.com)
OneDrive (onedrive.live.com)

Alternatively, you could upload a code snippet and I could give it a once
over (I'm a month into using PDFBox for a work project so I'm fairly
familiar with it but far from an expert).

On Thu, Dec 19, 2019 at 10:23 AM Baskar Murugan <ba...@gmail.com>
wrote:

>
> I don't know what do you mean by shared host. I upload PDF with this mail
> attachment. This pdfform you can find alignment (PRINT PLAYER's NAME
> column) issue.
>
>
>
> On Mon, Dec 16, 2019 at 12:52 PM Baskar Murugan <ba...@gmail.com>
> wrote:
>
>> Hi Team,
>>
>> I've found some PDFs where if you just type in a value in PDF reader, it
>> will be left-aligned, but if we use pdfbox to set the value in the form,
>> the text is center-aligned.
>>
>> I checked form field properties, It showing alignment as left
>> (formField.png)
>>
>> Since we're not specifying any alignment information, I don't know why
>> this would be happening.
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org



-- 
Chuck Patterson
Planalytics Inc
Senior Data Engineer
cpatterson@planalytics.com
(W) 610-755-7619

-- 
***************************************************The information 
contained in this e-mail message is intended only for the use of the 
recipient(s) named above and may contain information that is privileged, 
confidential, and/or proprietary. If you are not the intended recipient, 
you may notreview, copy or distribute this message. If you havereceived 
this communication in error, please notify the sender immediately by 
e-mail, and delete the original 
message.***************************************************

Re: Alignment Issue

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

unfotunately mail attachments are being filtered out. You need to place the PDF at a public location so we can take a look at
it.

BR
Maruan

> 
> I don't know what do you mean by shared host. I upload PDF with this mail attachment. This pdfform you can find alignment (PRINT PLAYER's NAME  column) issue.
> 
> 
> 
> On Mon, Dec 16, 2019 at 12:52 PM Baskar Murugan <ba...@gmail.com> wrote:
> > Hi Team,
> > 
> > I've found some PDFs where if you just type in a value in PDF reader, it will be left-aligned, but if we use pdfbox to set the value in the form, the text is center-aligned.
> > 
> > I checked form field properties, It showing alignment as left (formField.png)
> > 
> > Since we're not specifying any alignment information, I don't know why this would be happening.
> 
> ---------------------------------------------------------------------
> 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


Re: Alignment Issue

Posted by Baskar Murugan <ba...@gmail.com>.
I don't know what do you mean by shared host. I upload PDF with this mail
attachment. This pdfform you can find alignment (PRINT PLAYER's NAME
column) issue.



On Mon, Dec 16, 2019 at 12:52 PM Baskar Murugan <ba...@gmail.com>
wrote:

> Hi Team,
>
> I've found some PDFs where if you just type in a value in PDF reader, it
> will be left-aligned, but if we use pdfbox to set the value in the form,
> the text is center-aligned.
>
> I checked form field properties, It showing alignment as left
> (formField.png)
>
> Since we're not specifying any alignment information, I don't know why
> this would be happening.
>

Re: Alignment Issue

Posted by Tilman Hausherr <TH...@t-online.de>.
Hi,
Please upload your PDF to a sharehoster.
Tilman

Am 16.12.2019 um 08:22 schrieb Baskar Murugan:
> Hi Team,
>
> I've found some PDFs where if you just type in a value in PDF reader, 
> it will be left-aligned, but if we use pdfbox to set the value in the 
> form, the text is center-aligned.
>
> I checked form field properties, It showing alignment as left 
> (formField.png)
>
> Since we're not specifying any alignment information, I don't know why 
> this would be happening.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org