Hi,
Yes the problem has been solved.
I use twelvemonkeys library in my pom (with maven) :
<dependency>
<groupId>com.twelvemonkeys.imageio</groupId>
<artifactId>imageio-core</artifactId>
<version>3.2</version>
</dependency>
<dependency>
<groupId>com.twelvemonkeys.imageio</groupId>
<artifactId>imageio-jpeg</artifactId>
<version>3.2</version>
</dependency>
<dependency>
<groupId>com.twelvemonkeys.imageio</groupId>
<artifactId>imageio-metadata</artifactId>
<version>3.2</version>
</dependency>
<dependency>
<groupId>com.twelvemonkeys.common</groupId>
<artifactId>common-lang</artifactId>
<version>3.2</version>
</dependency>
<dependency>
<groupId>com.twelvemonkeys.common</groupId>
<artifactId>common-io</artifactId>
<version>3.2</version>
</dependency>
<dependency>
<groupId>com.twelvemonkeys.common</groupId>
<artifactId>common-image</artifactId>
<version>3.2</version>
</dependency>
And as you suggested, I have adding the attribute printable area :
pAttributsDocument.add(0, 0, MediaSize.ISO.A4.getX(MediaSize.MM),
MediaSize.ISO.A4.getY(MediaSize.MM), MediaSize.MM);
But with
this constructor : new PDFPrintable(document, scaling, showPageBorder, dpi)
the bottom of footer is cutting when printing.
And with this constructor : new PDFPrintable(document, scaling)
all is ok.
I don't change driver or frimware. (I can't do that, is not in my service).
Thanks for your help, Tilman
Regards,
Vincent ROYDOR
----- Mail original -----
De: "Tilman Hausherr" <[email protected]>
À: "users" <[email protected]>
Envoyé: Vendredi 11 Décembre 2015 19:57:22
Objet: Re: Problem when I print a PDF with a "Watermark"
Just for the record, the problem has been solved by using twelvemonkeys
and by using the dpi constructor of PDFPageable. There were blank areas
on the page only when printing, which I'd rather suspect is a
driver/firmware problem.
Tilman
Am 08.12.2015 um 16:13 schrieb Vincent Roydor:
> Hi,
> When I try to print the join PDF with this code :
> /travailImpression = printService.createPrintJob();/
> / HashPrintRequestAttributeSet printAttributs =
> creerPrintAttributes(pImprimante, flavor, pDoc, unFormat);/
> /if(ImprimanteControleurImpl.getEcouteurPrintService().get(pImprimante.getPrintService()).isServiceAccepteJob()){/
> / travailImpression.print(docImpression,
> printAttributs);/
> / jobsImpression.add(new
> TravailImpression(travailImpression));/
> / }/
>
> (the printing is TWO_SIDED_LONG_EDGE)
> The first page is good but the page 3 and 5 is white where the
> "Watermark" would be printing.
>
> Have you an idea where is my error?
>
> Thanks for your help.
>
> regards,
>
> *V.Roydor*
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]