I think PDFBox will do fine. I appreciate it. Thanks.
Blake On Sun, Mar 6, 2016 at 4:25 PM, Tilman Hausherr <[email protected]> wrote: > Am 06.03.2016 um 23:12 schrieb Blake McBride: > >> Thanks. I imagine that the PDF format has its own way of looking at >> things. This would be why the coordinates start in the lower left hand >> corner. Although that may be convenient for the PDF world, it makes no >> sense in most any other world IMO. No one generates a report from the >> bottom of the page up. Reports are generated top down. One reads records >> from a database, prints consecutive lines going _down_ the page, and then >> causes a new page if there are more records than space on the page. >> >> I think the library should cater to the developer rather than the medium. >> >> I am writing some utilities to provide top down coordinates with absolute >> positioning. Happy to contribute if interested. >> > > No need to, this is quite easy to do: just set a CTM that flips the page, > as it is done in CreateLandscapePDF.java > > PDFBox PDF creation is rather low level. If you want high level writing, > use itext. > > Tilman > > > >> Blake McBride >> >> >> On Sun, Mar 6, 2016 at 3:40 PM, Tilman Hausherr <[email protected]> >> wrote: >> >> Am 06.03.2016 um 21:31 schrieb Blake McBride: >>> >>> Hi, >>>> >>>> I am using 2.x. >>>> >>>> I see that PDPageContentStream.moveTo can not be used with text (??). I >>>> also see that PDPageContentStream.newLineAtOffset uses relative position >>>> numbers. I'd lite to use absolute positions. Is there a method for >>>> that, >>>> or do I need to create my own layer on top of newLineAtOffset? >>>> >>>> It starts from 0,0 initially... You could save the graphics state and >>> restore when done. >>> >>> Or use setTextMatrix(Matrix.getTranslateInstance((float) tx, (float) >>> ty)); >>> >>> Tilman >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >>> >>> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >

