Print JTextPane as vectors, not as bitmaps?

Hi,
I'm working on a small Swing application that allows to arrange elements like pictures, vector graphics and texts on a page and prints them. I use JTextPanes to display and print text frames. Everything works fine - but when I print (on the printer, not on the screen) one ore more JTextPanes, the whole printing seems to be no vector printing any more but a bitmap printing.
When I print without a JTextPane, I can zoom into the printed result (let's say a PDF, otherwise zooming is hard ;-)) as deep as I want and it is always sharp. But as soon as I print any JTextPane, the whole printing (even vector elements) are not sharp any more, but the pixels can be clearly seen when zooming in.
My only question: Is this normal? If yes, why? Or did I do something wrong, i.e. is it possible to print the contents of a JTextPane as vector glyphs too?
Thanks!

Please answer just that question (y/n) and I am "happy" for the moment...
Is it right that there is no way to print a JTextPane but to paint is "as a bitmap"?
I have a workaround: I can convert the StyledDocument to a list of AttributedString instances. When I print the AttributedStrings, everything is right (they are real vector glyphs, no bitmaps).

Similar Messages

  • VS2005 Crystal Report Print Report Button is not working on Windows 7 x64

    Hi There,
    My application is written in VS2005 C# on x86 machine. It runs smoothly on XP pro and Vista x86 machine.
    I deployed the same to windows 7 x64 machine with CRRedist2005_x64.msi and found that the Print Report button is not working.
    So, I re-compiled my application to x64 target platform, and reinstall the application to the same machine. But nothing changed. I have surf for answer over the web but nothing found.
    Please help urgently. Any helps is much appreciated. Thks in advance.
    Edited by: chanpyvivian on Mar 26, 2010 11:14 AM

    I follow your instruction as below:
    1) download the sample app vbnet_win_printtoprinter.zip to dev computer and compile it to .NET 2005.
    - Run from my dev computer
    - Click "Print Report" button
    - Error message display - please see below
        The error was due to the default printer name hard coded in the program was not found. I have edited to my printer name and it can be printed out with no error.
    2) Use a "saved data" report so that you do not have to worry about database logon.
    can't find the "saved data", please elaborate
    3) Then copy the exe to the 64 bit box and try to print using this sample app.
    -do you mean copy the exe to the 64 bit computer for testing ?
    ERROR Message
    CrystalDecisions.CrystalReports.Engine.InvalidArgumentException:
    Invalid printer specified. ---> System.Runtime.InteropServices.COMException (0x80000201):
    Invalid printer specified.
       at CrystalDecisions.ReportAppServer.Controllers.PrintOutputControllerClass.ModifyPrinterName(String newVal)
       at CrystalDecisions.CrystalReports.Engine.PrintOptions.set_PrinterName(String value)
       at CrystalDecisions.CrystalReports.Engine.PrintOptions.Copy(PrintOptions src)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
       --- End of inner exception stack trace ---
       at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
       at CrystalDecisions.CrystalReports.Engine.ReportClass.Load(String reportName, OpenReportMethod openMethod, Int16 parentJob)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.EnsureLoadReport()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.get_FormatEngine()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)
       at PrintToPrinter.Form1.Button1_Click(Object sender, EventArgs e) in C:\Crystal\CRNET\vbnet_win_printtoprinter\vbnet_win_printtoprinter\Form1.vb:line 91
    OK  
    Edited by: chanpyvivian on Mar 30, 2010 6:18 PM

  • HT201465 I have installed software for a HP Deskjet 1510 printer but it will not print

    I have OS X Yosemite 10.10.3 and I just purchased a HP Deskjet 1510 all-in-one printer.  I have installed the software and my computer is picking up the printer but it will not print.  I have restarted the computer and it still will not print.

    Hello jamesettafromfl,
    If you continue to have issues setting up your new printer in Yosemite, you may find the information and troubleshooting steps outlined in the following articles helpful:
    OS X Yosemite: Add or remove a printer
    OS X Yosemite: Printing troubleshooting
    Sincerely,
    - Brenden

  • HP Printer Software Installation will not complete

    I have an HP Officejet 8500 wireless bought in late 2011.  Never an issue until a recent new printer added to the computer seems to have changed an unknown setting and now printer or computer will not recognize or initiate a wireless print request.  Have tried all firmware updates, software updates, etc.  Printer is perfectly connected to wireless network established by router.  Any wireless print request from my MacBook is met with a "printer offline" description and sits in printer que.  Printer works(ed) fine when connected via USB to MacBook.
    Thought to uninstall/reinstall printer software hoping to reachieve initial set up defaults which have been working well prior to addition of new printer to computer.
    Uninstalled HP software; result was normal.  Inserted original software CD and tried to re-install software; result was as expected until step 5.  Comments now read Installing HP Scan, Install was successful.  Software has stalled on "5 items remaining" and will not move on to "4 items remaining" as next step.
    HP Uninstaller is not yet in HP application file, Attempting to "quit" HP Installer generates a warning window indicating "files could be damaged" which is same window generated when trying to shut down computer using Apple shutdown command. Shutdown ends up being cancelled by HP Installer.
    Computer is stuck and I'm stuck and I still don't know if reinstall would have solved original problem.  Hours into troubleshooting... any help available would be appreciated.  MacBook running OS X 10.6.8 all updates complete.  Thanks

    Thanks Bob - yes - setup from printer display to wireless network was done originally when printer was new and again today in attempt to reestablish whatever setting might have been accidentally changed.  Printer is "perfectly" connected to wireless network with Excellent signal quality, etc... As is Macbook perfectly connected to wireless network. 
    Problem now is that when trying to reinstall original HP printer software to computer the installation process has frozen.  I now cannot end the installation process or shut down the computer without potential fear of "damaging files".  I also am concerned that if I power off manually (hard shutdown) that I will not be able to uninstall those HP files that have been installed thus far before the process stalled.

  • HP PhotoSmart Premium inkjet printer - model c309a will not always scan or copy

    My HP PhotoSmart Premium injet printer (model C309a) will sometimes not scan a document.  When I press the "Scan" or "Copy" button, the display shows "Scanning" but nothing happens....  Otherwise, the printer seems to work fine.
    This "will not scan" problem happens sporadically.  It seems to be somehow associated with having the Bluetooth function turned off.  Go figure!  (I only use wired ethernet to connect the printer to my home network.)
    In any case, powering off the printer and powering it on again seems to solve the problem.  When I encounter the "will not scan" problem, the power button will not usually work - I need to pull-out the power cord in order to reset the printer.
    I also note that when I have the Bluetooth function turned off, it turns itself on again after a power-off / power-on cycle.
    I think the firmware in the printer may have corrupted.  Or more probably it could be that the latest HP firmware update for this printer has a bug.   However, I cannot re-install the latest version of the firmware for this printer because of another "bug" in the firmware update utility.  This firmware update utility bug is documented in another thread.

    Hi @Tony007 
    I understand why you may feel it is not a power issue, but from my experience I have seen the power source impact printer functions, particularly scanning. Even though it has worked previously, it still could be the surge protector. For argument sake (and I am by no means arguing with you ) I think we should connect it directly to a wall outlet for say a week and just see if the issue occurs. It is tough to troubleshoot an intermittent issue sometimes, but I am more than happy to tackle this with you. 
    If you are still reluctant to move the printer to a wall outlet, we can try a few other things, but if in the end it keeps occuring I vote we at least take the power source into consideration. In the meantime, let's try the steps in the following 2 documents;
    Buttons on the All-in-One Control Panel Do Not Function
    'An error occurred while communicating with scanning device' or a 'There is no computer connection' ...
    I am happy to do all I can to help, please let me know the outcome of your efforts. Thanks for your patience.  
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • HP D110 AIO printer. Prints jam when printing with wireless, but not when hooked to USB cable! HELP!

    I have a HP D110. It jams the paper when I print with wireless, but not when I use USB cable. Any ideas?

    From what you describe you are having issues printing from MS Office. Have you had trouble printing from other resources on your computer (e.g. from the internet or another program)? The first thing I am going to suggest is that we start by uninstalling and reinstalling the printer from the resources available online. 
    First if you use a USB cord, make sure to remove it (this is important). Do not plug it back in until the software directs you to. Then go through the Devices and Printers, Programs and Features and Device Manager folders and insure that all copies, files, and programs related to the printer are removed. Then as directed, restart the computer. 
    In the START menu type "%temp%" and press ENTER. Here I want you to press Ctrl+A and hit DELETE. Some of the files will not allow you to delete them, skip those files and delete the majority that allows it. 
    http://h20000.www2.hp.com/bizsupport/TechSupport/DriverDownload.jsp?prodNameId=3562006&lang=en&cc=us...
    Install that and let me know the result! 
    Have a great day!

  • Full page prints from iPhone but not from iPad using photo app with AirPrint ?

    Full page prints from iPhone but not from iPad using photo app with AirPrint ? iPad only prints 4x6 on full size paper. It's an HP 8600.

    I also have this problem printing photos from an iPad to an Epson WF-2540 printer. It prints only 4x6 and without border (so print starts at extreme top left corner of paper). Borderless printing is not selected on printer. Printing a square photo just crops to 4x6 size.

  • I am trying to delete pages I have crated in numbers, but can only see them in print preview. Without print preview I do not see them. How can I delete these pages, but keep others before and after?

    I am trying to delete pages I have crated in numbers, but can only see them in print preview. Without print preview I do not see them. How can I delete these pages, but keep others before and after?

    Hi Crushed,
    Numbers doesn't have pages. It has a canvas that holds objects such as tables and charts.
    Drag the objects from the bottom of the canvas onto the white space above. That will reduce the number of "pages" (sheets of paper) that will print.
    Regards,
    Ian.

  • Auto print invoice with delivery notes

    I am trying to find a way when we print invoices to have it print the matching delivery note as well.  Currently as you are aware you have to do the process in a separate manner which is not satisfactory for us.
    Thank you in advance,
    Chad

    hello,
    at present,it is not possible to create print flows such printing the delivery note with the invoice etc when you using the internal layout edtitor PLD. As a workaround you could use the Document Printing Option(Sales -A/R / Document Printing) to print a Selection of Documents.

  • How do I print all of my "notes" in Apple Mail?

    I have a couple of hundred notes and I would like to print all of them out so I have a hard copy. Is there a way to print all of the notes together or do I have to open each one and print them out individually? I have tried to copy and paste after selecting all of the documents but that doesn't seem to work. Is there a way to export the whole list of notes? Any help will be greatly appreciated.

    select all notes in Mail and go to file menu->save as. save it as an rtf file and print it.

  • Printing from iPad2 in Notes, not working

    We have several ipads being used in our office. All are printing fine from the "Notes" app except for one. Anyone know what could be wrong?
    It goes through all the steps correctly, looks like it's working, but nothing prints.
    Thanks,
    Doreen

    Thank you for replying so quickly!
    Without going into details...everything is set up right and has been working normally except for this one ipad. I'm thinking it's just the ipad, however, we are changing internet providers (coming in today actually) and expecting much better service to use multiple devices well. I suspect this could solve our occasional issues of having to restart things - including the printer sometimes! Once the change is up and running we'll see if the issue continues. If so, I will call Apple. Perhaps someone can walk me through steps to figure out what's up with this ipad.

  • HP business inkjet 2800 Print black only option not showing in Windows 7 64 bit operating system

    HP business inkjet 2800 Print black only option not showing in Windows 7 64 bit operating system
    Please help, if any one knows any solution.

    Hi @Firoskhan,
    Welcome to the HP Forums!
    I am sorry, but to get your issue more exposure I would suggest posting it, in the commercial forums since this is a commercial product. You can do this at HP Enterprise Business Community.
    Hope this helps!  
    RnRMusicMan
    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" to say “Thanks” for helping!

  • HP Laserjet 1010 & Wireless printing via Airport USB - Not working in SL

    Hi There,
    After just upgrading to Snow Leopard on my MacBook I tried printing wirelessly to my HP Printer, but no luck!
    Printer: HP Laserjet 1010
    Connected via: Airport with USB cable
    Snow Leopard recognises the printer and is fine to print when the printer is connected directly to the MacBook via USB cable, but:
    When I set up wireless printing, it finds the printer (via Bonjour) but simply will not print. The print monitor gets to 24% or so of the file processed and then just stops & fails.
    Everything was fine under 10.5 Leopard. It seems it should work, but no printing occurs! Any ideas?
    Many thanks,
    Paul

    I had a similar-sounding problem with my HP1012.
    The fix:
    a. power-cycled the Airport Extreme.
    b. Updated firmware.
    c. Select Print in an application.
    For an extended discussion of what I did see here - some of this may help:
    http://discussions.apple.com/thread.jspa?threadID=2142906&tstart=60
    Actually, at this point I have two printers connected: Airport Extreme ->USB powered hub ->2 printers. One is the HP1012, the other is an HP 4300 series inkjet. Took sometime to get it right, the first hub I tried apparently was not powered enough. In that vein, one earlier thread (a response to one of my posts) pointed out the possibility that the AE -> printer USB connection might not be adequately powered, and to try using an intermediate hub. Assuming your AE is performing properly in all other respects, don't rule out a cable or other printer connection issue even if the setup was working properly before.
    stan

  • Print job that will not die

    I have never seen this one before - a print job that magically reappears over and over after being deleted. Does anyone know what this is? Has anyone seen this before? Here are the specifics:
    Printer is and HP laserjet connected via USB to computer A which is a G5 iMac running OSX, current update as of today minus one. Computer A has Appletalk enabled over the ethernet, and printer sharing turned on for this printer. The logged in user is not the system administrator, it is a non-administrator user.
    Computer B is a G4 iMac, running OSX 10.3, Appletalk enabled via ethernet. The two computers are connected to an ethernet router. The printer for Computer B is set to the remote printer from Computer A.
    Computer B sends a print job from Microsoft Word, which get sent to Computer A. It disappears from the print queue on Computer B. It appears on the print queue for Computer A, and starts printing - 100 copies!
    The print queue on Computer A is stopped, the job is deleted. The print queue is turned back on.
    The job REAPPEARS and starts printing again.
    The queue is stopped and the job deleted - same result! The job reappears. So the queue is stopped, the job is deleted, the printer shut off and restarted, and the computer restarted. The print queue is turned back on.
    The job REAPPEARS and starts printing again!
    Eventually, the only way to kill this job was to DELETE the printer and recreate it!
    What on earth was this problem? Has anyone ever see a print job that would NOT go away???

    Hi ....
    I understand the issue with ur printer. and with the present set of OS this issue can be resolved.
    !! Prior to this u need to reset the printing services and then have a download of the recent set of drivers from the Vendor website.
    IF not then u need to delete the HP Printer folder and the HP Preferences from the Libraby folder....
    How to get there ::
    Double Click : MAC HDD icon
    select Library : and select Preferences.
    Do re-install the drivers for the Printer.
    Hope this may resolve ur issue.

  • I got a new router and i need to connect my printer now but do not have the cd for my printer?

    1. HP Deskjet 3050A All-in-One Printer J611g
    2. Windows 7
    3. no wireless connection
    4. got a new router
    5. I got a new router, therefore, a new SSID. I no longer have the printer CD to change the printer SSID and do not know how to do it without the CD

    Hi BethWells, for a start go to the link below
    http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?os=4063&lc=en&cc=us&dlc=en&sw_lang=&product=5061...
    Then download the full feature software. I'm not familiar with this printer model, but normally HP full feature software is the same as the CD.
    Though I work for HP, I'm speaking for myself and not HP. I'm just trying to help with my limited knowledge
    **Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue.**

Maybe you are looking for

  • Oracle UCM 10gr3 and webcenter 11g, WCM Portlets

    Hi, I have installed Oracle UCM 10gR3, Site Studio 10gR4 and Webcenter 11g. Now my problem is how to get the WYSIWIG (WCM Portlet) created in UCM to be retrieved in webcenter spaces. My understanding after reading some articles is the only way i can

  • Text in the title bar of an Accordion component

    Hi - I have an accordion component on my swf. Its working right but the text in the title bars (where I click to flip the accordion pages) is coming up bold when I want it normal. How do I change this? Thanks. D2

  • Cannot Remove Quicktime in order to re-install Itunes

    I tried to update iTunes several times and am getting errors with Quick Time in particular. My problems started whhen I tried to uninstall Quicktime. I have not been able to remove it completely and now cannot reinstall it properly either so as to up

  • How you can change region color like in GB

    In GB you can change the region color from orange to purple, by doing control/option/G/click. Orange tracks will not respond to tempo or pitch changes, until they are changed to purple. Is there a way to do the same in Logic? turn the blue regions in

  • I want to buy an iPhone from the apple store is it work in the Middle East

    Hello I live in Saudi Arabia and I would like to buy an iphone from your website ( the store ). I only wanted to ask is it work in the Middle East ?