Hi Lucy, 12 TL sets the text leading to 12pt, i.e the line-height. The default is zero. T* moves to start of a new line, and uses the TL value. This does nothing when TL is zero.
The text operators are documented in full in the PDF specification (ISO 32000:1), in Section 9.3, you can find a copy here: http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/PDF32000_2008.pdf <http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/PDF32000_2008.pdf> You might like to try the 2.0 Trunk version of PDFBox, where we have built-in APIs for these commands now, so you don’t have to call appendRawCommands. We also have full Unicode support for TTF fonts. -- John > On 15 Jan 2015, at 07:37, Vorpahl,Lucinda <[email protected]> wrote: > > 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 >

