pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Imran Akbar <imranakba...@gmail.com>
Subject Re: Can't get the size right
Date Tue, 11 Nov 2014 15:55:43 GMT
Hi Lorenzo,

I am facing similar issue, can you share the code you are using for silent
print with the 2.0 pdfbox, i downloaded 2.0 snapshot but it says Silent
print not available in PDDocument

PDDocument doc = PDDocument.load(fileName);
        doc.silentPrint(job);

.
Thanks,
Imran

On Mon, Nov 10, 2014 at 9:32 PM, Lorenzo Carnevale <
lorenzo.carnevale@afea.eu> wrote:

> Hello.
> I am using PDFBox to silent print some PDF.
> The file I am using for testing can be found here:
> https://drive.google.com/file/d/0B5aKlab3K43ZV2VLSVR3X2NhTXM/view?usp=sharing
> I tried to use version 1.8.6 at first, but the PDF I tried to print
> wouldn’t render correctly the Times New Roman font and replace it with Sans
> Serif.
> (Did I do something wrong?)
>
> So I switched to version 2.0 which , I read somewhere, fared better in
> that sense. And it works.
> I am pretty happy with the result, but the default settings print the page
> in a noticeably “shrinked” size – which didn’t happen with 1.8.6.
>
> For now I am using the “Scaling.ACTUAL_SIZE” option for the Printer
> constructor, but even in this case the resulting print is slightly larger
> than the original.
> I hope somebody could help, either telling me how to get the fonts right
> in 1.8.6  or the size right in 2.0 : )
>
> Thank you
>            Lorenzo Carnevale
>



-- 
  -- Imran Akbar

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message