ImageableArea (when printing) different in Java1.2.1 from 1.3.1

I am now compiling a source with JDK 1.3.1.08 which give the application a much better performance.
But now the printArea seem to be much smaller. (margin to big)
The same code result in a smaller printable area on the paper (printers can print a much larger area).
This is the code I use:
job = PrinterJob.getPrinterJob();
bk = new Book();
ppr = new Paper();
pf = new PageFormat();
ppr.setImageableArea(0,0,520,800);
pf.setPaper(ppr);
bk.append(new PrintOfferte(), job.defaultPage(pf));
class PrintOfferte implements Printable {
public int print(Graphics g, PageFormat pf, int pageIndex)
throws PrinterException {
g2D.setFont(fnt0);
g2D.setColor(Color.blue);
g2D.drawString(faNaam, kantLijn, bovenMarge);
return Printable.PAGE_EXISTS;
} file://end print
} file://end subclass PrintOfferte
ppr.SetImageableArea or ppr.setHeight/.setWidth does not make the printArea larger! nor ppr.setImageableArea(-10,-10,520,800);
Can I make the printArea larger?
Do you or a collegue know how to make the area larger (or atleast the same as under JRE1.2.1)?
Maybe I have to 'set' the Device or GraphicsConfiguration in the GraphicsEnvironment! But how?

Try this:
   job = PrinterJob.getPrinterJob();
   pf = job.defaultPage();
   ppr = pf.getPaper();
   ppr.setImageableArea(0,0,520,800);
   pf.setPaper(ppr);
   bk = new Book();
   bk.append(new PrintOfferte(), pf);I haven't tested the above code, so please tell me the results...
Regards.

Similar Messages

  • Selecting size of photo when printing on HP Office Jet 6500A from an Ipad

    Hi, I have just setup my Printer and tried to print a photo from an Ipad, the prints are only coming out in A4 full page size. I have searched the User Guide and cannot find any reference as to how I can print them out in any sizes, I would like to print in Postcard size. Can someone assist please. Many thanks.

    Hello KenA! Here's a link to an HP printing article on printing from an Apple iPAD:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02784317&tmp_task=useCategory&cc=us&dlc=en&lang...
    Take note:
    With AirPrint, you do not have the option to select different paper sizes. Paper and media sizes are automatically selected depending on the application you are using on your Apple device, your HP ePrint product, and the region in which you are using AirPrint.
    For example, from Apple’s Photo application, if the HP ePrint product has a separate photo paper tray, AirPrint will use 4x6 inch photo media as the default paper size. If the product does not have a separate photo paper tray, AirPrint will use letter-size paper. If you are printing from Apple’s Safari browser, letter-size paper will be the default paper size in the US region, and A4 will be the default paper size in Europe.
    If you are using the HP Eprint center:
    All photos e-mailed with HP ePrint will print at a default size of 4 x 6 inches (101.6 x 152.4 mm).
    If your HP ePrint-enabled printer does not have a separate photo paper tray, just make sure that photo paper is the only paper loaded in the tray when printing photos.
    Help the community by marking this post as a solution if it solved your issue!.
    If my post helped you in any way, please click the blue KUDOS star under my name! It would mean a great deal.

  • How to print different pages of sap script  from diff. trays of printer

    Hi All,
    I have the requirement in SAP script. How to print different pages from different trays in the printer.
    For example  page 1 logo and address has to print from tray-1,
                        page 2 main data print from tray-2,
                        page 3 footer data print from tray-3.
    will appreciate if u come up with solutions asap.
    Thanks in advance.

    Hi,
    May be the links given below might help you,
    SAPScript:Selecting Different Tray in SAPscript
    Print to different output tray in SAPscript/Print Workbench
    Regards,
    Hema.
    Reward points if it is useful.

  • 8500A horizontal steaks when printing from ipad and other devices

    When I print from a remote device (I-pad, I-phone) my documents have horizontal streaks that are bad enough to prevent you from seeing the words.  This also happens when I print from my Mac to the printer when printing a PDF or other document from the internet.  These all are situations where the print window doesn't give an option to print the highest quality.

    Hello  @Alfount ,
    Welcome to the HP forums.
    I understand that you are having a print quality issue with your Officejet Pro 8500A.
    I would like to help.
    Try going through the following print quality document.
    Fixing Print Quality Problems for the HP Officejet Pro 8500A e-All-in-One Printer Series
    You can also install the HP ePrint app onto your iPad. It will give you the option to print in a higher quality.
    Getting Started with HP ePrint Mobile Apps
    Aardvark1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!

  • How might I get photos centered when printing?  OS 10.7.5

    How might I get photos centered when printing to Lexmark Pinnacle Pro 901 from OS 10.7.5?  I either get a huge border on right for horizontal or on bottom for vertical.
    Thank you,
    Sheila

    Thanks for that Lanny & Lex, What I have done so far has got me back to some extent.
    My MacBook also has a login for my wife so I went there and copied Mail to a USB drive then back to my own login and dragged the mail app onto Desktop and put it into Applications. Then I was able to delete the original Mail app, which previously could not be done. My email is now working again via iCloud as previously. I still have to reinstall my gmail account but if that works then all is well.
    I think your solution is the better one (more orthodox) and if I have further problems I will do as you suggest.
    Thanks again, Richard S,

  • Text Size When Printing Comments Different Than On-Screen

    Hello.  We are supporting an end-user with an unusual problem.  They are able to make sticky comments fine and adjust the font size on screen.  However, when this user goes to print either to a physical printer or a PDF, the font size of the comment is different (smaller) than what is shown on screen.
    On-Screen Example:
    Print To PDF Example:
    Is there an option to match the text size of the printed version to that of the on-screen?  Even if the printed text size can be bumped up just a bit, it'd be greatly appreciated.  The font size when commenting on-screen is 18 Arial but it seems like the printed version is more like 10 Ariel.
    Thank you.

    Just tried the latest version of Adobe Reader and the same issue occurs.  Making the on-screen font size 70 in the Commenting Preferences field makes NO CHANGE when printed (comes out at about 10 / 12 point font).  Even the Print Preview doesn't show the larger font so there's some setting getting lost when you go to print.
    Talking to our client, this problem likely coincides with Adobe updates that were pushed out.  This is easily reproducible (anyone with an up-to-date version of Adobe Reader can do this) but doesn't seem to be a fix.
    Any help out there?

  • Different Colors when printing from Photoshop and InDesign CS3

    Different Colors when printing from Photoshop and InDesign CS3
    I have the following problem:
    When printing from Photoshop or InDesign to a PostScript printer, Adobe recommends to let Photoshop handle the colors (I use the German version, so I don't know the exact term used, it changes slightly in all CS3 apps anyway).
    The manufacturer however told me to let the PostScript printer handle the colors.
    When I chose this option in Ps's print dialog and then choose ISO Coated as the printer pfofile, the results are fine.
    But when I place the exact same image in an InDesign file and print from InDesign or export to PDF and print via Acrobat, again using "Printer handles colors", the results are the exact same as if I had used Ps and chosen to let Ps handle the colors (way too saturated and a bit too red).
    ·Photoshop CS3
    ·InDesign CS3
    ·Test image is a TIFF in CMYK Fogra 27 Coated (which is also the working color space in Ps and ID.
    ·Printer: Xerox Docucolor 3535
    ·Printer profile: ISO Coated
    How can I make sure the printer handles the colors in other CS3 apps than Ps? I tried it with ID's print dialog (translated from the German version: Color Management > Options > Color Handling: PostScript-printer decides colors).
    Thanks a lot!

    RE: "You don't indicate what Xerox printers you have"
    In my first post I named it, is that the information you need?
    Docucolor 3535 using Splash 3535
    That's interesting, so I have to find a way to turn off the printer's Color Management function? I mailed them, hope they can tell me how to do it easily. They usually just tell me to not use any profiles and so on, but that's the general rule in this area, I'm really tired of hearing it. Everybody seems to think profiles and LAB mode are nuclear science and I should stay away from it.
    Anyway, the test image I'm using is a simple photograph (size A3, 300dpi), so no transparencies at all. I'm placing this image into an equally large ID file and print it from ID, then export it to PDF-X/3 and print it from Acrobat. Hope that helps.

  • When printing on a digital press, why are the colors different between INDD & PSD?

    I've created the exact same CMYK mix in both InDesign and Photoshop. When printed on a digital press they are not the same color. Any ideas how this can be fixed/solved?

    Sounds like the RIP treats raster and vector objects differently. see InDesignSecrets » Blog Archive » Eliminating YDB (Yucky Discolored Box) Syndrome for a discussion of how this affects transparency interactions, and how to work around it. I suspect you can cure it by adding transparency to the master page and using the custom flattener method.

  • Illustrator CS6 - colours in pattern fill print differently when expanded

    The colours of a pattern fill print very differently when it is expanded.
    All the colours in the pattern swatch are CMYK. They look identical on screen when the pattern fill is expanded.
    When printed, the mustard yellow, the appley-lime green, and the purpley-grey look completely different.
    I'm using CS6 Illustrator, FOGRA39. I'm wondering if this is a printer issue maybe?
    This is really frustrating and very worrying as I use pattern swatches a lot, and colours need to stay the same as they are approved.
    I've found this thread and another one from 2010 with what sounds like the same issue (Pattern Swatch Colours) but neither have been resolved.
    Please help if you have any ideas!

    Why do my pattern swatch colours print differently to rest of my artwork
    Yes it is a postscript printer. I'm sorry, I can't show images as the design is confidential - but if you click on the link above, this person has photos of the same problem.
    I could put together a generic pattern swatch in the same colour and take a photo of the print out, if that helps.

  • Print a graph when used different resolutions

    Hello,
    my LV programm
    (using V8.5.1) must run on computers with different resolutions (1024x768,
    1280x1024...), so I used the option
    "new scaling of all frontpanel elements after changing the windows size" (free translating   )
    (German: "Alle Elemente des Frontpanels bei Änderung der Fenstergröße neu skalieren")
    in my VI.
    This works fine but now I have some trouble with the printout of a graph.
    Depending of the selected resolution of the computer, the graph will be printed complete or only partial, then the lower part of the graph is missing.
    To print out the graph I used the VI  "Append Control Image to Report.vi"
    Can anybody help me?
    Gruß
    jan91

    Hello Jan,
     you are right - when printing the report in landscape orientation, images will be cropped if higher than the paper size.This issue has already been reported to our LabVIEW R&D team (#36511) and should be solved in a forthcoming update of the report generation toolkit. In my opinion, the issue is linked to the problem that the image will not fill out the report page completely to the right margin (#36926), another nuisance you might also have encountered.
    I have created a workaround for the problem,  which you should find attached to this post. As you change the graphs background color for printing, I added another property to resize the graph to the maximum printable size (evaluated here in trial&error, depending on your printer, the maximum size might change a bit), and another one to restore the original size when the report is done. To reduce the "blink time" of the graph, I placed the restoring property node directly after the control image has been attached to the report, so that during printer initialization, the original layout is already visible again.
    Hopefully, this is acceptable for you, until these issues have been fixed.
    Best regards,
    Sebastian 
    Attachments:
    print graph (modified).vi ‏44 KB

  • When a document is a scanned PDF and converted to word some of the words and paragraphs are randomly a shade lighter when printed.  You can (barely) see it on the screen but it is different.  All font and design are the same.  Any suggestions?

    The lighter shading has been a problem when printing the documents.  You can barely see it but it is there????

    Hi Notary,
    I saw something similar with my 4 TB Promise SmartStor NAS after I upgraded to Lion. Only, I had ALL of my iTunes library on the NAS and one day, about a week after the upgrade I finally tried to play music with iTunes, but it kept throwing up an error just like the one you're seeing. I searched around for a while and finally found some steps that fixed the problem.
    I found this solution at another site (can't remember which) that gave credit to this site:
    http://www.alexanderwilde.com/2011/04/os-x-lion-connection-error-with-afp-and-wo rkaround/
    Here are the directions I cut-n-pasted into my little notes file:
    1) Launch the Terminal app
    2) Run this command:
    sudo chmod o+w /Library/Preferences
    3) Run this command:
    defaults write /Library/Preferences/com.apple.AppleShareClient afp_host_prefs_version -int 1
    4) Restart your computer
    5) From Finder, select an AFP server, or use “Connect To…”
         This will cause the AFP Client to create the full preferences file
    6) Launch the Terminal app again
    7) Run this command (all on one line, make sure double-quotes are simply double-quotes from your keyboard, not pasted from the web as up and down quote marks) (yes, some of the spelling looks weird):
    sudo defaults write /Library/Preferences/com.apple.AppleShareClient afp_disabled_uams -array "Cleartxt Passwrd" "MS2.0" "2-Way Randnum exchange"
    8) Run this command:
    sudo chmod o-w /Library/Preferences
    9) Restart your computer
    To disable this hack, run this command (all on one line, make sure double-quotes are simply double-quotes from your keyboard, not pasted from the web as up and down quote marks):
    sudo defaults write /Library/Preferences/com.apple.AppleShareClient afp_disabled_uams -array-add "DHCAST128"
    I hope that helps. If not, sorry for the ludicrous-long reply.
    Andy

  • Faded colors when printing from Acrobat - different than previous

    Hi
    I have read some threads about color fading when printing a PDF created in ID and printed from Acrobat. My problem is the same and I am also having the same problem with PDF's exported from Keynote (client created posters). It sounds like I should work with the PDF optimizer for the solution. Has anyone experienced the fading colors from anything other than ID or Quark made PDF's? Did the optimizer fix the problem? I find it frustrating that I can print directly from ID and not have a problem - why can't they all get along!  ;0)
    Using Acrobat 9, Keynote 09 and an Epson 9880 printer.
    Thanks

    RE: "You don't indicate what Xerox printers you have"
    In my first post I named it, is that the information you need?
    Docucolor 3535 using Splash 3535
    That's interesting, so I have to find a way to turn off the printer's Color Management function? I mailed them, hope they can tell me how to do it easily. They usually just tell me to not use any profiles and so on, but that's the general rule in this area, I'm really tired of hearing it. Everybody seems to think profiles and LAB mode are nuclear science and I should stay away from it.
    Anyway, the test image I'm using is a simple photograph (size A3, 300dpi), so no transparencies at all. I'm placing this image into an equally large ID file and print it from ID, then export it to PDF-X/3 and print it from Acrobat. Hope that helps.

  • Results are different when printing from CS5 and CS4

    A file that printed fine with Photoshop CS 4 printed very dark when printed with CS5, with no changes made to the settings. Has anyone else had this problem?

    RE: "You don't indicate what Xerox printers you have"
    In my first post I named it, is that the information you need?
    Docucolor 3535 using Splash 3535
    That's interesting, so I have to find a way to turn off the printer's Color Management function? I mailed them, hope they can tell me how to do it easily. They usually just tell me to not use any profiles and so on, but that's the general rule in this area, I'm really tired of hearing it. Everybody seems to think profiles and LAB mode are nuclear science and I should stay away from it.
    Anyway, the test image I'm using is a simple photograph (size A3, 300dpi), so no transparencies at all. I'm placing this image into an equally large ID file and print it from ID, then export it to PDF-X/3 and print it from Acrobat. Hope that helps.

  • How can I save to the same map every time when printing pdfs?

    How can I save to the same map every time when printing pdfs?
    Finder points to the document map even when I chose a different map recently.
    I often print series of pdfs from the print dialog box, I'd like to choose the map to save to and then have all subsequent pdf prints automatically directed to the same map until I decide otherwise.

    that link seems to be broken right now:
    403 Error - Forbidden  - No cred, dude.

  • Error message or program crashing when printing on Epson printer

    In July 2008, I upgraded my computer from a MacBook to a MacBook Pro (and bought a Time Machine so that all my files are backed up regularly!) I then bought my wife a MacBook Pro in November 2008. We both used to have iBook G4s.
    We have an Epson EPL-6200 Laser Printer that we print from using our Airport Express. It used to work fine printing documents from any program and printing wirelessly from the iBook G4 computers we had when we bought the printer around three years ago.
    But since I have switched to a MacBook and now a MacBook Pro, I have all kinds of problems printing on the Epson EPL-6200 printer. At first, my MacBook did not print remotely at all. I had long conversations with both Apple and Epson, knowing there was a problem with the Epson driver. To top it off, the problems seemed worst with Microsoft Office, so both of them also said it was Microsoft's fault!
    Now that Epson has upgraded its drivers and I have dowloaded the latest one, and switched to a MacBook Pro, I can print some files easily -- Word documents now print immediately, although I get an error message saying that the printer is not connected. But trying to print from other programs such as Firefox either takes a very long time (around 5-8 minutes for one page) or causes the program to crash.
    Any ideas? The strange thing is that my wife's computer and mine are exactly the same (running Mac OS X version 10.5.6) but behave slightly differently when printing. I can print from Firefox, albeit after a long time per page, whereas if she tries to print from her computer in that program it instantly crashes.
    I guess we still have driver issues with the Epson EPL-6200.
    But I have looked on the Apple support forums and there seem to be a lot of printer-related issues like this. Do you guys have any suggestions? Or is there a printer that will work well with our MacBook Pros, an Airport Express and/or Time Machine (we have both) and when printing remotely?
    All the best,
    Alex

    hey,
    well, i use the below machines with the current mac os (10.5.6).
    i (kind of often) had issues with the network printer epson epl-6200.
    of which every issue could be resolved by myself, more or less quickly.
    i.e. until the last update (10.5.6).
    none of my machines is able to get anything through the network to the printer.
    at least they don't get the printer to print a page.
    today i spent (almost) the whole day, trying out things to get it fixed this time.
    none of it worked.
    just to let you know:
    i can access the printer through its http-interface.
    i can ping it.
    it gets recognized by the printer/fax-dialog in the system-preferences.
    here's what i tried so far:
    i tried to install the osx driver for the epl-6200 with every single protocol that's available in osx (i.e.: Appletalk, IPP, Bonjour, EPSON (IP), etc.)
    i of course tried to update the driver with the latest software available on the epson-website. and did the thing with the different protocols again.
    i tried the "generic" postscript driver of osx, too.
    then it was getting interesting:
    i tried to get "cups" for the epl-6200. i don't want to get into details here, but to drop some names:
    foomatic-rip (combined with ghostscript)
    http://linuxfoundation.org/en/OpenPrinting/MacOSX/foomatic
    gutenprint (doesn't have an epl-6200 driver included)
    pxlmono (doesn't have an epl-6200 driver included)
    to sum that up:
    there are two drivers on the "openprinting"-site (foomatic). but one is (of course) the official epson driver.
    but:
    there is a "third-party" driver downloadable on that website.
    http://openprinting.org/show_printer.cgi?recnum=Epson-EPL-6200
    well, i downloaded it, installed the required additional software (foomatic + ghostscript), all very fine. i could choose it in the osx printer setup menu.
    but:
    my printer still won't print a single page.
    the error messages i got:
    other than the above post none of my programs ever crashed, or was "dead slow".
    but:
    the printing job got constantly stopped, i could restart it, but it was then stopped again. without any error message.
    there was the same thing with the halt of the printer (also monitored in the printing cue window). i could restart it, but it would stop again. without any error message.
    but i also got two decent error messages: :))
    the first involved the pdftoescpage.app, either it was failing (shown in the printer cue window), or it was crashing (i got the error message in a separate window popping up). according to folks on the net this malfunction involved user permissions, so i to set up the "right" permissions (giving everybody the right to do anything (rwx) - i know i shouldn't have :)) ). but it didn't help. still crashing or failing.
    the second decent error message, finally:
    "double free" - what that meant, i cannot tell.
    conclusion:
    i don't know. :))
    required action:
    i will await the next osx update, and hope it'll be fixed then. :))
    good night, y'all
    p.s.: ahh, if anybody knows anything i didn't and should try. please drop a line. thx

Maybe you are looking for