[
https://issues.apache.org/jira/browse/PDFBOX-2139?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
John Hewson closed PDFBOX-2139.
-------------------------------
Resolution: Duplicate
Fix Version/s: (was: 2.0.0)
This PDF uses TrueType fonts with composite glyphs, which is a duplicate of
PDFBOX-1740.
> German Umlaute (mutated vowel) are rendered incorrect
> -----------------------------------------------------
>
> Key: PDFBOX-2139
> URL: https://issues.apache.org/jira/browse/PDFBOX-2139
> Project: PDFBox
> Issue Type: Bug
> Components: FontBox, Rendering
> Affects Versions: 2.0.0
> Reporter: Julian Ivancsuk
> Attachments: PDFBOX-2139.png, korr_temp3177394709181084760.pdf,
> korrespondenz_temp8345172740623456142.ps
>
>
> German Umlate, specifically the 2 dots on top of the characters, are not
> rendered correctly after loading a PDDocument and creating a postscriptfile
> with the resulting ByteArrayOutputStream.
> I use a 2.0 nightbuild.
> {code:title=PDFService.java|borderStyle=solid}
> private ByteArrayOutputStream pdf2ps(byte[] pdf) throws PrinterException,
> IOException {
> DocFlavor flavor = DocFlavor.SERVICE_FORMATTED.PRINTABLE;
> String psMimeType = DocFlavor.BYTE_ARRAY.POSTSCRIPT.getMimeType();
> StreamPrintServiceFactory[] factories = StreamPrintServiceFactory
> .lookupStreamPrintServiceFactories(flavor,
> psMimeType);
> PDDocument doc = PDDocument.load(new ByteArrayInputStream(pdf), false);
> ByteArrayOutputStream bout = new ByteArrayOutputStream();
> // Use the first service available
> PrintService sps = factories[0].getPrintService(bout);
> // Define paper size
> PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
> aset.add(MediaSizeName.ISO_A4);
> PrinterJob pjob = PrinterJob.getPrinterJob();
> pjob.setPrintService(sps);
> PDFPrinter printer = new PDFPrinter(doc, Scaling.ACTUAL_SIZE,
> Orientation.AUTO);
> printer.silentPrint(pjob);
> doc.close();
> return bout;
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)