On 28/05/2012 17:50, Susheela Sundar wrote:
> I am trying to watermak a document with multiple lines.
Hi Susheela,
I hope the previous answer from 1T3XT helped you solve the problem.
We get similar questions on a regular basis, and in most of the cases
the problem is caused by not taking into
On 28/05/2012 17:50, Susheela Sundar wrote:
> Also, please let me know if I am doing anything wrong.
1. We are NOT here to debug your code.
2. You DID NOT read my answer.
I see that you obtain the size of the page like this:
Rectangle size = reader.getPageSizeWithRotation(1);
I DON'T see you get
I am trying to watermak a document with multiple lines.
Please find the attached file which includes the calculation part of the x
and y.
Also, please let me know if I am doing anything wrong.
On Mon, May 28, 2012 at 8:24 PM, 1T3XT BVBA wrote:
> On 28/05/2012 16:33, Susheela Sundar wrote:
> >
On 28/05/2012 16:33, Susheela Sundar wrote:
> Yes, I am calculating the values of x and y for every document while
> watermarking.
How did you calculate those values? Are you sure you're doing it correctly?
> I assumed this for a sample PDF having the page size "595x842mm" for
> testing purpose
Yes, I am calculating the values of x and y for every document while
watermarking.
I assumed this for a sample PDF having the page size "595x842mm" for
testing purpose.
On Mon, May 28, 2012 at 7:27 PM, 1T3XT BVBA wrote:
> On 28/05/2012 14:46, Susheela Sundar wrote:
> > under.showTextAlignedKerne
On 28/05/2012 14:46, Susheela Sundar wrote:
> under.showTextAlignedKerned(Element.ALIGN_BOTTOM, lineText, 60, 120,
> angle);
What makes you think that x = 60 and y = 120 are the right coordinates
for every PDF you want to watermark? You need to CALCULATE those values,
not just GUESS them.
-
Hi,
I am not able to watermark some of the scanned PDF documents and it does
not give any error. The same code works fine for other PDF documents.
The sample java code snippet used for watermarking is given below:
String filePath = "E:\\inputfile.pdf";
String tempFilePath = "E:\\o
Sorry forgot to mentions the iText version. I am using iText-5.0.5.
-Susheela
On Mon, May 28, 2012 at 6:16 PM, Susheela Sundar wrote:
> Hi,
>
> I am not able to watermark some of the scanned PDF documents and it does
> not give any error. The same code works fine for other PDF documents.
> The