Print text precisely located in a paper

Hi,

I’m trying to print some contents in a paper which has been partly printed by the publisher. How can I locate them precisely to the positions in which they are suppose to be? Any Idea?

Thanks in advance!

2009-03-18

···

artman328

artman328 wrote:

Hi,
I'm trying to print some contents in a paper which has been partly printed by the publisher. How can I locate them precisely to the positions in which they are suppose to be? Any Idea?
Thanks in advance!

Through experimentation. I use reportlab to create PDFs and I can position the text anywhere on the page that way. You could do that same and print to plain paper and then overlay it with the publisher's paper to see if the text is in the right position. If not, adjust as necessary and repeat.

I think the print framework works in a similar way as it's supposed to "paint" to the page. I never did figure out how to use it properly though.

Good luck!

···

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org

> Hi,
>
> I'm trying to print some contents in a paper which has been partly
> printed by the publisher. How can I locate them precisely to the
> positions in which they are suppose to be? Any Idea?
>
> Thanks in advance!

Through experimentation. I use reportlab to create PDFs and I can
position the text anywhere on the page that way. You could do that

same

and print to plain paper and then overlay it with the publisher's

paper

to see if the text is in the right position. If not, adjust as

necessary

and repeat.

I think the print framework works in a similar way as it's supposed to
"paint" to the page. I never did figure out how to use it properly

though.

Yes, the print framework is similar. It gives you a device context, and
you can paint text and graphics on it with pixel precision. You may
have to detect the resolution of the printer and adjust accordingly, but
there are tools in the print framework that allow for that. (Sorry, I'm
not at the office right now, so can't give you a pointer to where you'd
find it.)

David