You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by James Green <ja...@gmail.com> on 2013/05/08 08:28:00 UTC

Overlay positioning problem

Hi,

Am hoping someone here can speed up an investigation of ours. Essentially
we're seeing a document overlaid with unexpected results.

We are looking at three PDF files each of which Adobe Reader claims to be
A4 in size.

Two of the PDFs are considered stationary documents. The third PDF is the
letter to be overlaid onto the stationary. Very simple stuff!

Let's call the letter document A, the stationary B and C.

A onto B: works as expected
A onto C: A loses a lot of the left hand margin. The overall document that
is A appears to be left of centre as a result.

A and B were produced by OpenOffice. C was sent to us by a professional
stationary company. Both scenarios are being put through exactly the same
use of PDFBox. As stated before, all three are said to be A4 according to
Reader.

Any ideas to help us with this at all?

Thanks,

James

Re: Overlay positioning problem

Posted by Andreas Lehmkühler <an...@lehmi.de>.
Hi,


James Green <ja...@gmail.com> hat am 8. Mai 2013 um 13:07 geschrieben:
> Hi Andreas,
>
> I (literally) just created PDFBOX-1596 as a result of further testing.
> Indeed OverlayPDF works better but it's a pain the rear end to use as it
> has been plugged right into a CLI driven class.
+1, good idea

> I might get a chance to work on this. Are github pull requests good for you
> lot?
Yes of course, that's ok

> On 8 May 2013 12:02, "Andreas Lehmkühler" <an...@lehmi.de> wrote:
>
> > Hi,
> >
> > James Green <ja...@gmail.com> hat am 8. Mai 2013 um 08:28
> > geschrieben:
> > > Hi,
> > >
> > > Am hoping someone here can speed up an investigation of ours. Essentially
> > > we're seeing a document overlaid with unexpected results.
> > >
> > > We are looking at three PDF files each of which Adobe Reader claims to be
> > > A4 in size.
> > >
> > > Two of the PDFs are considered stationary documents. The third PDF is the
> > > letter to be overlaid onto the stationary. Very simple stuff!
> > >
> > > Let's call the letter document A, the stationary B and C.
> > >
> > > A onto B: works as expected
> > > A onto C: A loses a lot of the left hand margin. The overall document
> > that
> > > is A appears to be left of centre as a result.
> > >
> > > A and B were produced by OpenOffice. C was sent to us by a professional
> > > stationary company. Both scenarios are being put through exactly the same
> > > use of PDFBox. As stated before, all three are said to be A4 according to
> > > Reader.
> > >
> > > Any ideas to help us with this at all?
> > Which PDFBox version? What are you using to do the overlay: the "old"
> > Overlay
> > or the "new" OverlayPDF? The new one uses a new IMHO better approach to
> > create
> > an overlayed pdf.
> >
> > > Thanks,
> > >
> > > James
> >
> > BR
> > Andreas Lehmkühler
> >


BR
Andreas Lehmkühler

Re: Overlay positioning problem

Posted by James Green <ja...@gmail.com>.
Hi Andreas,

I (literally) just created PDFBOX-1596 as a result of further testing.
Indeed OverlayPDF works better but it's a pain the rear end to use as it
has been plugged right into a CLI driven class.

I might get a chance to work on this. Are github pull requests good for you
lot?


On 8 May 2013 12:02, "Andreas Lehmkühler" <an...@lehmi.de> wrote:

> Hi,
>
> James Green <ja...@gmail.com> hat am 8. Mai 2013 um 08:28
> geschrieben:
> > Hi,
> >
> > Am hoping someone here can speed up an investigation of ours. Essentially
> > we're seeing a document overlaid with unexpected results.
> >
> > We are looking at three PDF files each of which Adobe Reader claims to be
> > A4 in size.
> >
> > Two of the PDFs are considered stationary documents. The third PDF is the
> > letter to be overlaid onto the stationary. Very simple stuff!
> >
> > Let's call the letter document A, the stationary B and C.
> >
> > A onto B: works as expected
> > A onto C: A loses a lot of the left hand margin. The overall document
> that
> > is A appears to be left of centre as a result.
> >
> > A and B were produced by OpenOffice. C was sent to us by a professional
> > stationary company. Both scenarios are being put through exactly the same
> > use of PDFBox. As stated before, all three are said to be A4 according to
> > Reader.
> >
> > Any ideas to help us with this at all?
> Which PDFBox version? What are you using to do the overlay: the "old"
> Overlay
> or the "new" OverlayPDF? The new one uses a new IMHO better approach to
> create
> an overlayed pdf.
>
> > Thanks,
> >
> > James
>
> BR
> Andreas Lehmkühler
>

Re: Overlay positioning problem

Posted by Andreas Lehmkühler <an...@lehmi.de>.
Hi,

James Green <ja...@gmail.com> hat am 8. Mai 2013 um 08:28 geschrieben:
> Hi,
>
> Am hoping someone here can speed up an investigation of ours. Essentially
> we're seeing a document overlaid with unexpected results.
>
> We are looking at three PDF files each of which Adobe Reader claims to be
> A4 in size.
>
> Two of the PDFs are considered stationary documents. The third PDF is the
> letter to be overlaid onto the stationary. Very simple stuff!
>
> Let's call the letter document A, the stationary B and C.
>
> A onto B: works as expected
> A onto C: A loses a lot of the left hand margin. The overall document that
> is A appears to be left of centre as a result.
>
> A and B were produced by OpenOffice. C was sent to us by a professional
> stationary company. Both scenarios are being put through exactly the same
> use of PDFBox. As stated before, all three are said to be A4 according to
> Reader.
>
> Any ideas to help us with this at all?
Which PDFBox version? What are you using to do the overlay: the "old" Overlay
or the "new" OverlayPDF? The new one uses a new IMHO better approach to create
an overlayed pdf.

> Thanks,
>
> James

BR
Andreas Lehmkühler