Re: Java: how to use xulrunner to convert html to postscript?
Em quinta-feira, 20 de fevereiro de 2014 15h54min28s UTC-3, Christian Sell escreveu: > browser.setVisible(false) browser.setVisible hidden the content, but box window yet appear. maybe describing my problem can help them help. I Need receive labels in html format via webservice in a java SE application and print the same in an automated fashion by controlling the printing and return if the document is printed or not. The problem is to convert the html to a print format that the printer accepts, ie, postscript or image. ___ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
Re: Java: how to use xulrunner to convert html to postscript?
browser.setVisible(false) ___ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
Re: Java: how to use xulrunner to convert html to postscript?
Em quinta-feira, 20 de fevereiro de 2014 15h39min39s UTC-3, Daniel Oliveira escreveu: > Em quinta-feira, 20 de fevereiro de 2014 14h24min46s UTC-3, Christian Sell > escreveu: > > > we have done something similar, actually also from within SWT/Java. Heres > > some caveats: > > > > > > > > > > > > 1. If you want a version of XULRunner > 10, you must move up to at least > > Eclipse 4.4M5. That version supports XULRunner 24. You can, however, > > manipulate your Eclipse target to include the 4.4M5 SWT bundles only > > > > > > > > > > > > 2. your solution won't be able to handle large images/webpages. If the > > generated image in itself will not blow up your app because of memory > > consumption, the conversion to AWT will surely do so. > > > > I was wrong, this solution can't solve all my problems. I necessary that the > browser not appear, only need to capture the image, is this possible? Note: The images are small, I just need to print labels on a Zebra printer ___ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
Re: Java: how to use xulrunner to convert html to postscript?
Em quinta-feira, 20 de fevereiro de 2014 14h24min46s UTC-3, Christian Sell escreveu: > we have done something similar, actually also from within SWT/Java. Heres > some caveats: > > > > 1. If you want a version of XULRunner > 10, you must move up to at least > Eclipse 4.4M5. That version supports XULRunner 24. You can, however, > manipulate your Eclipse target to include the 4.4M5 SWT bundles only > > > > 2. your solution won't be able to handle large images/webpages. If the > generated image in itself will not blow up your app because of memory > consumption, the conversion to AWT will surely do so. I was wrong, this solution can't solve all my problems. I necessary that the browser not appear, only need to capture the image, is this possible? ___ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
Re: Java: how to use xulrunner to convert html to postscript?
we have done something similar, actually also from within SWT/Java. Heres some caveats: 1. If you want a version of XULRunner > 10, you must move up to at least Eclipse 4.4M5. That version supports XULRunner 24. You can, however, manipulate your Eclipse target to include the 4.4M5 SWT bundles only 2. your solution won't be able to handle large images/webpages. If the generated image in itself will not blow up your app because of memory consumption, the conversion to AWT will surely do so. ___ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
