pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vorpahl,Lucinda" <vorpahl.luci...@heb.com>
Subject What does appendRawCommands do?
Date Thu, 15 Jan 2015 15:37:18 GMT
I have the following lines of code for creating my PDF but I'm not sure what the appendRawCommands
is doing.

contentStream.drawString("\u0095 Some standard text here");
contentStream.appendRawCommands("12 TL T*");
contentStream.drawString("\u0095 More basic text here, ");
contentStream.appendRawCommands("T*");
contentStream.drawString("  Additional stuff here");
contentStream.appendRawCommands("T*");
contentStream.drawString("\u0095 You know what is here  ");
contentStream.appendRawCommands("T*");
contentStream.drawString("  Yep.");
contentStream.appendRawCommands("T*");
contentStream.drawString("\u0095 One more line");
contentStream.appendRawCommands("T*");
contentStream.drawString("\u0095 Last line");

This is the output:


*         Some standard text here

*         More basic text here,

Additional stuff here

*         You know what is here

Yep.

*         One more line

*         Last line

Is appendRawCommands creating the bullet points?
Why does the first line have "12 TL T*" and the rest only have "T*"

Thanks in advance,
Lucy Vorpahl


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