Images fail to print when text is printed as well

I have gone around in circles with the following problem. I am printing using the method
printJob=Toolkit.getPrintJob()
To print content on a page I use the methods on the graphics context that is obtained using
g=printJob.getGraphics().
I can print an image using the g.drawImage(...) method successfully untill, I also attempt to print text using the g.drawString() method!!!
I have made sure that the image is properly loaded before rendering (is rendered fine into a JPanel before printing for test purposes).
Why would invoking g.drawString() result in the image also being printed? Any suggestions are welcome...

I am answering my own post... perhaps will help someone else.
The problem arises when the you attempt to set different clip rectangles as you render various page elements. Avoiding setting clip rectangles will help in avoiding the problem.

Similar Messages

  • Some text in PDF fails to print -- document originally created with InDesign

    Hello. Thanks in advance for your help.
    I joined Creative Cloud a few days ago, and dowloaded several CS6 programs -- InDesign, Illustrator, Photoshop and Acrobat XI Pro. My operating system is Windows 7.
    I created a simple order form using InDesign, and it prints perfectly directly from the InDesign platform. After creating a PDF by selecting Adobe PDF as the printer, the resulting PDF looks perfect on screen when viewed in Acrobat XI Pro. However, when printing from Acrobat to a paper-and-ink printer, chunks of the text go missing. Two other people who were emailed the PDF of this document have experienced the same problem, with the same chunks of text failing to print.
    Since it prints perfectly from InDesign, I am guessing the problem lies somewhere on the Acrobat side of the equation. Since the same problem has occured with several different printers, I am assuming it's not a problem with my particular printer.
    I have already tried unchecking the "Rely on system fonts only; do not use document fonts" option in the Adobe PDF printing preferences, and that did not fix it. I didn't expect that was the problem, since the rest of the type prints perfectly.
    I would like to attach two PDFs and/or the original InDesign document, but I cannot find an attachment option on the interface for this discussion page. I would be happy to email them to anyone who would like to take a look at them.
    As usual, I am working on a deadline and would very much appreciate any help you can give me.
    Thank you!

    YES! A SOLUTION!
    Thanks to an Adobe user who goes by "Test Screen Name" for this solution!
    DO NOT print to PDF from InDesign to create a PDF. Instead, use the Export function.
    I followed that advice, and it solved the problem. Hope this helps you, JuleeBruce!

  • Image gets cut off when printing tiles

    My InDesign file includes an 8" x 28" page containing a full-bleed image that prints as 4 tiles of 8.5" x 11".  Whenever I print, the image does not print on the first tile. The foreground text and vector graphics print fine. The image is a PSD, but I've also tried flattened TIFs and JPGs with the same results. Even if I make the page twice as big so nothignbleeds, the image doesn't print on the first tile that should contain the image.
    Any suggestions? Thanks

    Thanks for the ideas.
    I thought about printing from a PDF, but I couldn't find a way to print tiles in Acrobat. I'll see if I can print to tiles as a PDF. I also will see what happens if I place a PDF into the InDesign file, then print that.
    I didn't log in as a different user, but I did open on another computer, with same results.
    Never heard of .inx, but I'll try that too.
    Some new twists:
    1) When I flip the page orientation upside-down in the print dialogue box, the opposite happens - the last image tile doesn't print.
    2) Today I printed the page at 50% and it worked fine with all image tiles printing correctly.

  • Image is not printing in PrintAdvanceDataGrid when the PrintAdvanceDataGrid was added to Vbox

    I tried to print the image in the PrintAdvance Data Grid  , image is not priniting  when the PrintAdvanceDataGrid was added to Vbox or Vgroup, can any one help?

    Images are loaded asynchronously, so they appear after the page is sent to the printer.  Using an image cache should help.
    -Alex

  • When printing web based .pdf or regular .pdf I get message "This document failed to print"

    When printing web based .pdf or regular .pdf I get message "This document failed to print".  I've ran the HP Diagonistic tool and no errors are found.  I've gotten the same message on many different .pdf's so I don't believe it is a margin issue.

    Are the static IP addresses inside the DHCP range?  If so, move them to ones outside the range.
    Also, have you set the IP address in the printers' embedded web pages (via IP address in a browser) to match the ones set in the router? 
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • Some images do not print when in printed documentation

    I have been encountering this problem for over a year now...
    I maintain over 20 projects in RoboHelp HTML. I have numerous
    printed document layouts defined. However, in what appears to be
    random situations, some of my images do not print. They display
    online just fine, but they are not visible in the printed
    documentation. Only a blank gap displays where the image should
    display. And there is no conditional build tag applied to any of
    these images. The reason I think it is random is because, if I
    perform the following test, the images print just fine:
    - duplicate the printed documentation layout
    - remove, from the duplicate copy, all of the pages
    surrounding a page that contains an image that does not print
    - generate the duplicate copy

    I had a similar problem with missing images. I never really
    solved it, but it (apparently) went away. One thing which helped
    was ensuring that none of my images had filenames containing
    spaces.
    In addition, selecting Link images rather than Embed can be
    useful; missing images are then replaced by a red cross which makes
    it easier to locate the problem.
    Also, in Word, you should uncheck Tools > Options >
    Print > Update Fields (that is for Word 2003).
    --- Derek

  • Poor Image Quality in Pages when Printing

    I am having problems with Pages printing images poorly in my documents. The image is barely recognizable and the colors are distorted. It looks fine on the computer page before printing but does not print out well at all. If I save the file as a pdf and then print it through Acrobat, it works fine and the images look just like the ones in the computer. Since Pages and Acrobat are using the same printer and probably the same driver, I am assuming the problem is in Pages not recognizing the image properly.

    Is it an HP printer? Is the image printed in negative? Does the image have shadows?
    In that case, remove the shadows. Or use Adobe Reader, just like you do. It is one of the known work arounds for this problem.

  • Store takes forever to load and when it does images fail and text is not setup right?

    So I thought I had troubles loading the store with itunes, but now I notice it does load just takes forever and when it does the images are broken and the text is linear, not spread correctly like the page would have set it up.  I have tried all the proxy/DNS flush suggestions that the site offers, I have even reinstalled intunes.  I know it is not my provider because the wife's computer loads the store just fine.  My only guess is that there is something I have done to disable itunes from working right or the fact that me and the wife use same provider but are not setup as a home network, any help would be great!

    My girlfriend is having the same issue w/ Vista since she updated to iTunes 9. Can't figure out the problem for the life of me and contacted support and they sent me here. Basically the HTML on the store isn't loading properly and it takes forever for the text just to load. Anybody got some suggestions? I'm sure I'm just missing something...

  • Adobe Acrobat Pro failed to print pdf file

    I downloaded adobe acrobat pro and started the 30 trial version just a few minutes ago.
    I could open files through adobe acrobat and convert word files to pdf, but when i tried converting a publisher file it could not go through. An error popped up which read "Adobe PDF printer failed to print pdf file".
    The publisher file I am hoping to convert to pdf is a 21 page panorama article. It contains lots of images and a variety of font types.
    I do not know other alternatives for solving this issue.
    Your help will be very much appreciated.
    Thank you!
    Erik

    It seems to be that Adobe Acrobat virtual printer is not properly installed on your PC or you are not selecting Adobe PDF printer to print PDF document. Checkout the below screen shot to see proper printer.
    After trying this if you have same problem you may trt some other virtual printer that easily convert or print any file as PDF, you may checkout here.

  • HP Laserjet 6MP fails to print with parallel-to-USB converter cable

    I have a LaserJet 6 MP parallel printer which I was using in 10.3.9 with a parallel-to-USB converter cable. The Printer Utility saw it natively as a USB device and it printed just fine most of the time, although it would occasionally fail to print, so I installed a different driver called usbtb 1.0.15, and after that it printed very reliably.
    Now I've upgraded to 10.4.9, and the Printer Utility still detects the HP printer natively as a USB device, and I also installed the formerly-reliable usbtb driver again, but the printer now fails to print with either driver. It acts like it's going to, but then it quits.
    When I choose Print, all the features of the printer are shown, and I can select which tray to take paper from etc., and the printer dialogue box says "Printing," the activity light on the printer flashes just as it always does when printing is in progress, but then, instead of printing, the activity light stops flashing and the print job disappears from the dialogue box.
    Can anyone tell my why this printer is failing to print now, and how I might be able to get it working again?
    Thanks,
    Tom

    Wait a minute! It's only certain Indesign documents that won't print.
    All TextEdit docs will print.
    I created a few scribbles in Photoshop and they print.
    But with InDesign, there is no predicting which documents will print or will not print. On some that will not print, if I remove all but one text box, then they will print. On other documents that do print, if I copy some text off of one that won't print and paste it in, then that one stops printing too.
    On some that won't print, if I erase everything on the page and create a new text box and type a few words into it, the page will print. If I revert to the previously saved version, once again the page won't print.
    What kind of craziness is this, anyway? It seems random. I can't figure it out.
    Even on the documents that won't print, when I try to print them the printer's activity light blinks as though it is just about to print, but then the light goes out without printing.
    Anybody got any ideas what this problem is and how to fix it?
    All I know is that EVERYTHING printed before I upgraded from 10.3.9 to 10.4.9.
    Tom

  • HP Color LaserJet 1515n fails to print

    HP Color LaserJet 1515n fails to print
    I had this printer just 13 months, and it has stopped working without giving any kind of error code.
    I ran my black down to 1% using override - and then nothing. The printer accepts jobs and appears to do everything up to the point when it should start feeding paper through the printer transport.
    I changed the black toner, but it made no difference.
    To avoid complex print driver problems I have been using a simple txt file with 'hello world' for testing.
    Having reinstalled the drivers.
    I have done a very extensive web search, I cannot find any appropriate help.
    I took the side off the machine to reveal the electronics, and tested all the connections etc, but cannot find anything obviously wrong.
    The transport mechanism seems ok, because the manual feed slot accepts paper and pulls it in, but then goes no further, ie to actually start printing.
    The calibration process seems ok, and all the 4 color cartridges seem ok, and the spindles on them obviously turn having marked them to see if any were stuck.
    As there is no error code in the log file, I cannot see what is wrong.
    Does anybody have any idea what is wrong? Are there and tools that can be used to interrogate the printer further?

    Wait a minute! It's only certain Indesign documents that won't print.
    All TextEdit docs will print.
    I created a few scribbles in Photoshop and they print.
    But with InDesign, there is no predicting which documents will print or will not print. On some that will not print, if I remove all but one text box, then they will print. On other documents that do print, if I copy some text off of one that won't print and paste it in, then that one stops printing too.
    On some that won't print, if I erase everything on the page and create a new text box and type a few words into it, the page will print. If I revert to the previously saved version, once again the page won't print.
    What kind of craziness is this, anyway? It seems random. I can't figure it out.
    Even on the documents that won't print, when I try to print them the printer's activity light blinks as though it is just about to print, but then the light goes out without printing.
    Anybody got any ideas what this problem is and how to fix it?
    All I know is that EVERYTHING printed before I upgraded from 10.3.9 to 10.4.9.
    Tom

  • Photos fail to print after editing with clone stamp tool and layers

    After editing using the clone stamp tool and using layers the photos fail to print.  I even tried a simple crop edit and the photo failed to print.
    Photos print without editing.

    Im working on a Mac OX 10.9.4 and Photoshop Elements 12 for Mac
    I tried printing from Organizer and editor and I have the image saved on my desktop
    I don't receive an error when I try to print. The message usually reads: Printing, 2% complete or 13% complete.
    I have left it sit overnight but it never produced a photo.
    The printer is new: HP Envy 5400 and I have no problem printing photos from I Photo.

  • Failing to print very large files

    I've got an iMac running the newest Leopard, printing to a network printer. Printing usually works without incident. However, when printing large documents -- say a 20-40MB PowerPoint presentation with lots of color -- I receive the following message after 10-20 minutes of waiting:
    /usr/libexec/cups/backend/socket failed
    The printer is an HP Color LaserJet 8550DN with 96MB RAM and a 3.1GB internal HD.
    When printing large documents to this printer, printing seems to proceed correctly (if slowly) before reaching the inevitable error message.
    Possible causes would seem to be
    --too large a print job for the printer (though lpq suggests that many of the jobs that failed were <50MB). There was no other network printing taking place on this printer when the jobs failed.
    --some kind of timeout issue. How is the timeout value set? It doesn't appear to be in /etc/cups/cupsd.conf, at least at the moment.
    Any other suggestions appreciated.
    Thanks.

    This info relates directly only to an Epson 9800. However, it may have applications elsewhere.
    Generally, the print spooler in the 9800 with Photoshop will not print large files (>100 mb or so) unless you first convert them to the printer profile and shut down and restart the Mac and then print the converted image. This is true for Tiger and Leopard. In addition Leopard takes about twice as long to spool and since I print lots of 500 mb files, I have given up and gone back to Tiger (lots of other reasons also).

  • My Image CLASS MF4350d printer is not recognized by windows 8-64 bit

    My Image CLASS MF4350d printer is not recognized by windows 8-64 bit any help how can i fix the problem. I just bought new HP computer from Future shop and it came with Windows in it. but this windows8 doesnt have drivers for my printer Image Class MF 4350d. Now I hve no clue how can i fix this isue. Because I checked on Canon website for drivers and downloaded and run the drivers, but no solution for my printer at all.

    Yes. I have the latest version intalled but this hasnt helped.
    I thought it could be to do with the Shuffle not having enough of a battery charge.
    So i plugged it into the wall charger and then tried this didnt work either.
    It wont even play music for some reason. The only information I get in the earpiece when I turn it on is what the battery level is at.

  • Why should Adobe Reader fail to print because of settings in the Edit/Preferences?

    AdobeReaderDocumentCouldNotPrint.txt
    Glyn Price Tue 17 March 2015
    Why should Adobe Reader fail to print because of settings
    in the Edit/Preference?
    Adobe Reader XI Version 11.0.10
    MS Window 7
    File > Print > Print
    I got the error message:
    The document could not be printed
    I googled this error message and used the following
    solution that worked i.e. it then printed successfully.
    Edit >  Preferences
    Category: Security(Enhancement)   'Enable Protected  Mode at Startup'
    It was checked, changed it to unchecked.
    Category: Documents    'View documents in PDF/Mode'
    It was set to 'Only for PDF/A'
    Set it to 'Never'
    Exited Adobe Reader and restart it. Then it printed.
    I had a look on another computer system (Adobe Reader XI Version 11.0.10
    and MS Window 7) and on this different computer I could print
    without doing the above two changes.
    I'm a bit puzzled. Why preferences on one system were not
    needed on a different system?

    Here is an elaborate method of troubleshooting this problem. There may be a simpler method if anybody wants to suggest one.
    There is a general technique that is helpful in this situation. I can't give you complete instructions here, and I haven't tested this with regard to bluetooth devices, but here's the gist of it.
    Create a second log-on account for your music projects. Configure it so that when you log in to the new music account, the drivers needed for the Bluetooth devices don't load. You do this in System Preferences: Accounts.
    When it's time to do music, log out of your usual account and onto the new one.
    When you install drivers for any peripheral, you have the option of installing them "for all users" or only for the user account that is active during the installation.
    This governs whether the drivers go in root/library or root/Users/your name/library.
    If drivers are in root/library, they will load whenever the Mac is booted up and will run for all users.
    But if drivers are loaded in root/Users/your name/library, they will only load if you log in as "your name". If you have a second account called root/Users/music account/, and you log in under that, the drivers in "your name" will not load. Get it?
    To get this working right you need to be knowledgeable about moving or deleting files in the /library/ directory and subdirectories, and you need to be careful because you can unwittingly cause some damage if you are not careful.
    There is also the root/System/library directory, and in general you should never mess around with anything in there or you might hose your system.
    In summary, I would start by using the installer programs for your BlueTooth devices and DE-installing all drivers. Reboot. Log back in as your usual user account. Then RE-install each driver and see if the installer program gives you the OPTION to installl for all users or just for this user. Choose the latter. Then log on to your new Music account and see if the problems go away.

Maybe you are looking for