0

I am using the PSDocumentGraphics2D class in the Apacheā„¢ XML Graphics Commons library to create a .PS file. Works great.

However I now need the ability to write the below commands at the start/end of a book:

<</OutputType(Stacker)>>setpagedevice
<</EndOfSet true/Jog 3>>setpagedevice
...
<</OutputType ()>>setpagedevice
<</EndOfSet false/Jog 0>>setpagedevice
...
<</OutputType(Stacker)>>setpagedevice
<</EndOfSet true/Jog 3>>setpagedevice

Where/how do I do that?

thanks - dave

David Thielen
  • 28,723
  • 34
  • 119
  • 193

1 Answers1

0

Turns out it's easy. The call is:

((PSDocumentGraphics2D)graphics).getPSGenerator().writeln(command);

This writes a line directly to the generated file.

David Thielen
  • 28,723
  • 34
  • 119
  • 193