You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2016/12/04 13:01:58 UTC
[jira] [Comment Edited] (PDFBOX-3601) newline doesn't move the line
[ https://issues.apache.org/jira/browse/PDFBOX-3601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15714845#comment-15714845 ]
Andreas Lehmkühler edited comment on PDFBOX-3601 at 12/4/16 1:01 PM:
---------------------------------------------------------------------
A log message at DEBUG level would be ok. Anything else might be annoying
UPDATE: I had a look at the code. The given leading value is just written to the stream and isn't saved. So, we would have to save it first to add a debug message. IMHO, we shouldn't do anything as w.r.t. the spec everything is fine.
was (Author: lehmi):
A log message at DEBUG level would be ok. Anything else might be annoying
> 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org