PDFTranscoder & Paper size
Hello,
I'm using PDFTranscoder to convert an svg to pdf, everything is working fine, but I'm having trouble with setting the correct paper size. I set my paper size of (8.5 x 11 in.) with the following code:
pdfTranscoder.addTranscodingHint(PDFTranscoder.KEY_WIDTH,
(float)pageFormat.getWidth());
pdfTranscoder.addTranscodingHint(PDFTranscoder.KEY_HEIGHT,
(float)pageFormat.getHeight());
which gives me a paper size of 8.25 x 6.38 in. I also tried:
pdfTranscoder.addTranscodingHint(PDFTranscoder.KEY_WIDTH,
(float)pageFormat.getImageableWidth());
pdfTranscoder.addTranscodingHint(PDFTranscoder.KEY_HEIGHT,
(float)pageFormat.getImageableHeight());
which gives me a paper size of 6.75 x 4.88 in. Any help with this is much appreciated. Thanks.
vyang