[
https://issues.apache.org/jira/browse/PDFBOX-3601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15720072#comment-15720072
]
Maruan Sahyoun commented on PDFBOX-3601:
----------------------------------------
fine - so let's leave it as is. In a future text formatter we can use some
proper defaults and a typical user would then use that API. Makes more sense
then trying to make the very low level API we have today user friendly as this
would mean a lot of more messages in other areas. E.g. setting the font size,
setting the text color, using other short hand operators and use defaults
there...
> newline doesn't move the line
> -----------------------------
>
> Key: PDFBOX-3601
> URL: https://issues.apache.org/jira/browse/PDFBOX-3601
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.3
> Reporter: Ralf Hauser
> Priority: Trivial
> Fix For: 2.0.4
>
>
> The newLine() calls in the following code snippet have no effect.
> PDFont fontHelvetica = PDType1Font.HELVETICA_BOLD;
> contents.beginText();
> contents.setFont(fontHelvetica, 9);
> contents.newLineAtOffset(320, 730);
> contents.showText("...departement ...");
> contents.newLine();
> contents.newLine();
> contents.showText("Bundesamt ");
> contents.newLine();
> contents.showText("Direktionsbereich ");
> contents.setFont(font, 12);
> contents.newLineAtOffset(50, 650);
> contents.showText("Hello World");
> contents.endText();
> contents.saveGraphicsState();
> contents.close();
> The three lines are all over each other
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]