pdf writer, are loose objects always "on top"

A

aktxyz

I have a watermark image that I want beneath the content of every
page. I'd like to use loose objects so I do bloat the file, but loose
objects seem to always be on top, making for a very poor BACKGROUND
watermark !
 
A

aktxyz

I have a watermark image that I want beneath the content of every
page. I'd like to use loose objects so I do bloat the file, but loose
objects seem to always be on top, making for a very poor BACKGROUND
watermark !

Ok, this seems to work...

#===== shazam
# move the last content item for this page (the loose object)
# to the front pf the content array
#===== shazam
c = pdf.current_page.contents
pdf.current_page.contents =
c.slice(-1,1).concat(c.slice(0,c.length-1))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,274
Messages
2,571,370
Members
48,062
Latest member
leehaan

Latest Threads

Top