Print outside the imageable area

I am trying to print some letters at the very top of the page (or atleast as much on the top/left or top/right as I can), I've tried to force it to be able to print outside the imageable area, but so far I haven't succeded, my last failure so far is:

    Graphics2D g2d = (Graphics2D)g;
    g2d.translate(pf.getImageableX()-50, pf.getImageableY()-50);
    g.drawString("Hello world!", 100, 100);

As always thanks for your time and help.


Another user made a similar question in the past and the answer helped me to solve my issue.

java printing - setting size of the border

Need Your Help

Omniauth-facebook Devise Rspec, undefined method `extra' for nil:NilClass

ruby-on-rails rspec devise omniauth

I'm trying to test omniauth-facebook integration in my app, but i keep getting this failures:

Maven process test resources

testing maven dependencies

I have a maven project that has a test-scope dependency on an artifact.