Yep, what you're after is a Form XObject. Unless you have a lot of repeated content there's not much advantage to using it.
-- John > On 6 Jan 2015, at 13:35, Tilman Hausherr <[email protected]> wrote: > > I was afraid that you would ask that, because I've never used it for > creating, only had to do with it when rendering :-( > > You could get the SuperimposePage.java example in the source download (which > uses Layerutility), or this posting by "mkl": > https://stackoverflow.com/questions/26256546/how-to-insert-an-pdpage-within-another-pdpage-with-pdfbox > > While none of the two will directly do what you need, they should tell you > the general direction to go, i.e. that you'd understand what a content stream > is, and how to fill it, and what an XForm is. > > I suggest you start with something very small and non confidential and post > the code if it doesn't work properly. > > > Tilman > > > >> Am 06.01.2015 um 22:02 schrieb Vorpahl,Lucinda: >> I'm sorry, I'm very new to PDFBox and am not familiar with Xform. >> Do you know of a good reference or examples that I can use to help >> familiarize myself with it? >> >> Thank you, >> >> Lucy Vorpahl >> Software Developer >> [email protected] >> >> -----Original Message----- >> From: Tilman Hausherr [mailto:[email protected]] >> Sent: Tuesday, January 06, 2015 2:52 PM >> To: [email protected] >> Subject: Re: How to draw duplicate data using PDFBox >> >> You could create an XForm and invoke that one again and again. >> >> Tilman >> >>> Am 06.01.2015 um 21:31 schrieb Vorpahl,Lucinda: >>> I am creating a pdf document using pdfbox. >>> >>> I have no problem creating the document with one rectangle filled in >>> with data but now I want to copy the data and write it multiple times >>> on the same page. >>> >>> Example: >>> >>> Hello How Are You Hello How Are You Hello How Are You >>> >>> I know I can write out the line of text over and over specifying the >>> textTranslation but there is a lot of text so I wanted to see if there >>> were other options like somehow cloning the original rectangle. >>> >>> Does anyone have any suggestions? >>> >>> Thank you, >>> >>> Lucy Vorpahl >>> >>> Software Developer >>> >>> [email protected] <mailto:[email protected]> >>> >

