Printing big Image throws OutOfMemoryError

Hello,
I am new to "Java Printing", this is my first attempt to print somthing in Java, I am trying to print several JTextPanes and a big PNG image as a background for them. Sometimes everything work fine, but sometimes it throws java.lang.OutOfMemoryError, full message is: Exception in thread "Image Fetcher 0" java.lang.OutOfMemoryError: Java heap space. I use JDK 1.5_06.
I use the following code to print Image and JTextPanes:
PrinterJob printerJob = PrinterJob.getPrinterJob();
printerJob.setPrintService(servicesName);
PrintRequestAttributeSet pras = new HashPrintRequestAttributeSet();
pras.add(new PrinterResolution(200, 200, ResolutionSyntax.DPI));
PageFormat pf = printerJob.defaultPage();
Paper paper = pf.getPaper();
paper.setSize(1654D,2339D);//A4 page size with 200 DPI
paper.setImageableArea(0D,0D,1654D,2339D);
pf.setPaper(paper);
printerJob.setPrintable(documentPanel, pf);
printerJob.print(pras);documentPanel is instance of class DocumentPanel:
/*Panel that contains my JTextPanes */
public class DocumentPanel extends JPanel implements Printable{
/*overriden method print*/
public int print(Graphics g, PageFormat pf, int index) throws PrinterException {
        if (index > 0) { /* We have only one page, and 'page' is zero-based */
                return NO_SUCH_PAGE;
            Graphics2D g2d = (Graphics2D) g;
            g2d.translate(leftMargin, topMargin);
            //draw the background image
            g2d.drawImage(iipmt().getImage(),0,0,null);
            g2d.scale(1.667D, 1.667D); /*this is to make children  JTextPanes bigger.
            As I see after printing  this line doesn�t affect size of image, which is set above.*/
            /* Now print all children - JTextPanes without parent*/
            this.printChildren(g2d);
            /* tell the caller that this page is part of the printed document */
            return PAGE_EXISTS;
static ImageIcon iipmt(){
         return  new ImageIcon("image.png");
} If I change image to another one with smaller size and use 72 DPI instead of 200 my program always work fine. Also it seams that extending java heap space with -Xmx256 can solve this problem (I don't know exactly because error doesn't repeat always and I can�t determine some special conditions for this error).
I don�t want to extend heap space and I think it is not necessary for printing images, so I would like to know, is there better way to print Images mixed with Swing components? Or what mistakes did I make?

A printer setting of 600 dpi doesn't mean 600 pixels per inch. It's a relative quantity of how much ink you want the printer to use to faithfully reproduce the pixels on the page. So for example, you start to achieve photo quality around 250 pixels per inch, but would need to set the printer to 1200+ dpi if you ever hope for it to print out correctly. Trying to achieve 600 pixels per inch would be suicide for your printer.
That being said, you're not actually doing anything with this dpi or ppi stuff. In your code you're ultimately just drawing the image, scaled to the page's size using nearest neighbor interpolation, and printing it at 72 pixels per inch. In the code you commented out, you have the interpolation fine but miss the mark on the scaling. Specifically, you scale the graphics correctly, but then two lines later you set the transform to something else.
Try this:
double scale = 72/...;  //be reasonable, 600 won't work, 72 pixels-per-inch may be just fine
Graphics2D g2d = (Graphics2D) printerGraphics;
g2d.scale(scale,scale);
g2d.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
                     RenderingHints.VALUE_INTERPOLATION_BICUBIC);
g2d.drawImage(image,xMargin,yMargin,
        (int) Math.floor(pageFormat.getWidth()/scale),
        (int) Math.floor(pageFormat.getHeight()/scale),null); This should (in theory) scale the image to the page's size using bicubic interpolation, and print it at what ever pixels-per-inch you specify. The crappy output you were getting could of been the nearest neighbor interpolation, the 72 ppi, or some combination of both.

Similar Messages

  • Smartforms - How to print an image in backgroud ?

    Hello,
    I have to print some orders in development and quality system, so to avoid that some people can think that
    is a production order, I have to print also a big image in background (DEV for Development, QAS for Quality).
    Do you have some idea ? How to print a big image on background ?
    Tks,
    bye.

    Hi Roberto,
    To determine the logo dynamically, you need to click the traingular or arrow button which stays right beside 'NAME' where you select the backgroung picture.
    Once you select the arrow button, the F4 help will be removed and you can enter variable into that field.
    Regards,
    Swarna Munukoti

  • Safari 7.0 does not loading big image.

    Hi. I have Mac book pro (13-inch Early 2013).
    I'm Korean. and my english level is very terrible.
    but, My MacBook has some problem.
    My Mac installed OSX10.9. and safari ver is 7.0.
    If loading big image, safari is show black box.
    But other brower is show image.
    thanks for reading, my broken text.

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot insafe mode and log in to the account with the problem. Note: If FileVault is enabled on some models, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and Wi-Fi on certain models.  The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • How to load big images in Java?

    Hello all,
    is there any possibility to load a big images about 200-500 Mb with Java Graphics API ?
    This code throws OutOfMemory Exception.
            try {
                BufferedImage img = ImageIO.read(new File("testpic1.bmp"));
                int w = img.getWidth(null);
                int h = img.getHeight(null);
                bi = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);
                Graphics g = bi.getGraphics();
                g.drawImage(img, 0, 0, null);
            } catch (IOException e) {
                System.out.println("Image could not be read");
                System.exit(1);
      protected void paintComponent(Graphics g) {
       g2D.drawImage(bi, null, 0, 0);
      }I can't extend memory for the JVM because of my requirement. So I have to load a picture partly as user access to it.
    I am very thankful for every idea.

    I try to read an image like this:
    The size of the image is 10000x4000
    How can I read from Buffer 6000-5700 = 300 for width and 3000-2700 = 300 for heigth?
    If I do it like that
    bi = new BufferedImage(6000, 3000, BufferedImage.TYPE_INT_ARGB);
    I read more, than I need.
    Is there somthing like
    bi = new BufferedImage(5700, 2700, 6000, 3000, BufferedImage.TYPE_INT_ARGB);
    ??

  • How to getPixels of a big image

    Hello,
    How to getPixels of a big image?
    for(int i = 0; i < planarImage.getHeight();i++) {
        planarImage.getData().getPixel(0,i,tab);
    }This code works for a small image 1728 x 2592 but when we load an big image (7000x10000):
    java.lang.OutOfMemoryError: Java heap space
    Dumping heap to /Users/pierre/NetBeansProjects/projetTER/nbproject/private/profiler/java_pid486.hprof ...
    Heap dump file created [12872497 bytes in 0.133 secs]
    Exception in thread "Thread-15" java.lang.OutOfMemoryError: Java heap space
            at java.awt.image.DataBufferByte.<init>(DataBufferByte.java:59)
            at java.awt.image.ComponentSampleModel.createDataBuffer(ComponentSampleModel.java:397)
            at javax.media.jai.RecyclingTileFactory.createTile(RecyclingTileFactory.java:397)
            at javax.media.jai.PlanarImage.createWritableRaster(PlanarImage.java:1995)
            at javax.media.jai.PlanarImage.getData(PlanarImage.java:2173)
            at javax.media.jai.PlanarImage.getData(PlanarImage.java:2029)
            at javax.media.jai.RenderedOp.getData(RenderedOp.java:2277)
            at jai.scale.RenderableScale$2.run(RenderableScale.java:175)
            at java.lang.Thread.run(Thread.java:637)Can I load a part of image?
    Thanks.

    You should check out tiling, if the image is tiled it doesnt need to be in memory all at once.
    Of course you probably need to set the heapsize to a reasonable value eg
    -Xmx256m
    I would suggest about half your main memory.

  • Optmizing big image for the web

    Dear Friends,
    In the 1st place I apologise if this is not the most apropriate forum to post my question but its web / image related, hence my doubt.
    I have this big image file that I need to publish on the web but even before optimizing the picture I should scale it down by over 60%. Right now 'save for the web' won't even take it...If I use the 'image size' menu to simply resize it (to 900 x 300px) the quality of the image becomes very poor so I wonder, is it better to scale it down first using the 'edit/transform/scale' option?
    Also, if you will be so patient: on a webpage with no other images what would be the approx.maximum size acceptable for it to still load quickly?
    I'm sorry if it sounds like I haven't done my homework - and honestly I've tried - but I can't find conclusive answers and the perfect pictures on the web (like I see often) remain an undisclosed mistery for me.
    Thanks a lot
    JV  

    jvmonteiro wrote:
    I have this big image file that I need to publish on the web but even before optimizing the picture I should scale it down by over 60%. Right now 'save for the web' won't even take it...If I use the 'image size' menu to simply resize it (to 900 x 300px) the quality of the image becomes very poor.
    Like Zeno said use Bicubic Sharper.
    Also keep in mind that when you make an image smaller you are throwing away data so of coarse it not going to be as detailed as the original. actually I would bet you can open your image in SFW. You are just getting a warning that its a big image. Just open it anyway then you can adjust the size and quality of the image to your liking.

  • Trouble printing an image that has BufferedImage composited onto it

    I make a complex image by adding several BufferedImages that have been rotated. The result appears fine in a JComponent, but when I print the same image, the only part of the BufferedImage that comes through is the part located where the BufferedImage would have been if not rotated.
    If the rotation is 90 degrees or more in either direction (that is, if no image will appear), I get the following error message:
    java.awt.image.RasterFormatException: Transformed width (0) is less than or equal to 0.
         at java.awt.image.AffineTransformOp.createCompatibleDestImage(AffineTransformOp.java:430)
         at java.awt.image.AffineTransformOp.filter(AffineTransformOp.java:209)
         at sun.print.PathGraphics.drawImage(PathGraphics.java:1745)
         at RotateBuffIm.painter(RotateBuffIm.java:99)
    My system is:
    Windows XP, service pack 3
    HP LaserJet 1022
    BlueJ 2.5.0
    Java jdk 1.6.0_12
    My source code is:
    import java.awt.*;
    import java.awt.font.*;
    import java.awt.print.*;
    import java.awt.image.*;
    import java.awt.geom.*;
    import javax.swing.*;
    * RotateBuffIm draws a BufferedImage and
    * composites it onto another image at an
    * arbitrary angle. That part of the image
    * not in the area that it would occupy if
    * it were not rotated, is lost. If the
    * rotation reaches +/- 90 degrees, an
    * exception is generated and the compositing
    * fails.
    public class RotateBuffIm extends JComponent
    implements Printable {
    static boolean printIt = true;
    RotateBuffIm() throws PrinterException {
    JFrame frame = new JFrame();
    frame.setSize(800,646);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    this.setOpaque(true);
    frame.getContentPane().add(this);
    frame.setVisible(true);
    if (printIt) {
    Paper paper = new Paper();
    paper.setSize(576, 792);
    paper.setImageableArea(72, 72, 432, 646);
    PageFormat pF = new PageFormat();
    pF.setPaper(paper);
    pF.setOrientation(PageFormat.LANDSCAPE);
    PrinterJob job = PrinterJob.getPrinterJob();
    job.setPrintable(this, pF);
    job.print();
    * paintComponent(g)and print(g, pf, pg) both call
    * painter(g), which does the drawing.
    public void paintComponent(Graphics g) {
    painter(g);
    public int print(Graphics g, PageFormat pf, int pg) {
    if(pg >0) return Printable.NO_SUCH_PAGE;
    painter(g);
    return Printable.PAGE_EXISTS;
    * painter draws one BufferedImage consisting
    * of a rectangle with a label inside, and
    * composites it onto the page-sized field at
    * an arbitrary location and angle.
    private void painter(Graphics g) {
    Graphics2D g2 = (Graphics2D) g;
    g2.setColor(Color.WHITE);
    g2.fillRect(0, 0, 792, 612);
    g2.setColor(Color.BLACK);
    g2.setComposite(
    AlphaComposite.getInstance(
    AlphaComposite.SRC_OVER));
    int angle = 90;
    int x = 300; int y = 300;
    int w = 200; int h = 50;
    BufferedImage bI = new BufferedImage(
    w, h, BufferedImage.TYPE_INT_ARGB);
    Graphics2D gBI = bI.createGraphics();
    gBI.setColor(Color.BLACK);
    gBI.setBackground(Color.WHITE);
    gBI.drawRect(0, 0, w-1, h-1);
    TextLayout tL = new TextLayout(
    "BufferedImage at angle "+angle+" deg",
    gBI.getFont(), gBI.getFontRenderContext());
    int yT = (int)(h*.5 +
    (tL.getAscent()-tL.getDescent())/2);
    int xT = (int)(w*.5 +
    ( -tL.getAdvance())/2);
    tL.draw(gBI, xT, yT);
    AffineTransform at = new AffineTransform();
    at.setToIdentity();
    at.rotate(Math.toRadians(angle));
    AffineTransformOp ato =
    new AffineTransformOp(at, null);
    try {
    g2.drawImage(bI, ato, x, y);
    } catch(Exception e) {
    System.out.println("draw failed");
    System.out.println(e.toString());
    What do I not understand? This seems to be a failure to rotate a clipping shape to match the image. I'm at a pretty basic level. Thank you for any enlightenment.

    the method
    g2.drawImage(bI, ato, x, y);will either call
    ato.filter(bI,null);or
    ato.filter(bI,bI);The printer graphics might be calling the later one. So you end up getting this result
    the only part of the BufferedImage that comes through is the part located where the BufferedImage would have been if not rotatedTry changing the statement to
    g2.drawImage(ato.filter(bI,null),x,y,null);

  • Print a IMAGE in a REPORT

    I need to print a IMAGE (hosting in the SE78 transaction store) in a REPORT.
    is it possible????
    Wait your responses. See you.

    Hi,
    Using ALV, you can upload logo into report like this:
    For those who wish to upload and use a picture in your ALV abap reports.
    Steps for uploading Logo :-:
    1.  Goto the transaction OAER
    2.  Enter the class name as 'PICTURES'
    3.  Enter the class type as 'OT'
    4.  Enter the object key as the name of the logo you wish to give
    5.  Execute
    6.  Then in the new screen select Standard doc. types in bottom window
         Click on the Screen icon 
         Now, it will ask for the file path where you have to upload the logo
    7.  Now you can use this logo in REUSE_ALV_COMMENTARY_WRITE
    or 
    Import Logo and Background Picture for Reporting
    In this step, you can import a customer-specific logo and a background picture into the R/3 System. These will be displayed in the header area of reports in HR Funds and Position Management.
    From the SPRO: 
    HR Funds and Position Management --> Dialog Control --> Customize Reporting Interface --> Import Logo and Background Picture for Reporting.
    Activities
    1. Enter the Name of your logo/background picture as an object key in the initial screen.
    2. Make sure that the class name is PICTURES, and the class type is OT.
    3. Choose Execute.
    4. Double-click the document type Picture on the Create tab page.  A dialog box will appear in which you can enter the path in which the logo/background picture can be found.
    5. Enter the path and choose Open.  The logo will be uploaded into the current R/3 System. If the logo/background picture is to be transported into other systems as well, choose Transport.
    6. Return to the initial screen and repeat the procedure after having entered the Name of your background picture as an object key.
    Please note that the logo/background picture can only be displayed in ALV-based reports with an HTML header. Manually programmed reports such as business distribution plans are not based on the ALV.
    If you have selected several initial objects, ALV-based reports in HR Funds and Position Management will automatically use a hiearchical-sequential display. A logo is not displayed here either. Note also that the logo cannot be printed (see print preview in program).
    Make sure that the logo does not exceed a height of 100 pixels because it would mean that the header of the report will be scrollable.
    Regards,
    Bhaskar

  • Can I print a image larger than 4x6 directly from iPad's photo application to a HP Air Print printer without a additional app?

    Can I print a image larger than 4x6 directly from iPad's photo application to a HP Air Print printer without a additional app?

    jerryone1942 wrote:
    Can I print a image larger than 4x6 directly from iPad's photo application to a HP Air Print printer without a additional app?
    It depends upon the capabilities of your printer. If you have an HP printer with a photo tray then the Photo app will print to whatever size you load in to that tray.
    There's some more information here:
    Using AirPrint to Print Various Photo Sizes
    With other printers the user is given a choice from the printer's loaded paper sizes. You can see an example of that here:
    The Many Faces of the iOS Print Panel

  • Error "Failed to Export PDF" with big image on CS6 (32) and CC (64)

    Hi everyone,
    I'm on indesign CS6 (v8.0.2) and when I try to export pdf with a very big image ( *.tiff, 25000*35000 pixels, ) , the action failed with this message :" Failed to export a PDF".
    To be sure that there is no any corrupted elements, I made a very simple layout (one page , and just one element for my image,I turnoff prefilgth and all  ressource intensive options, and export with no downsampling or resampling) and try to export with different size image:with 20000*30000 -or smaller -image the export works, always failed with image .The export failed to in scripting mode.
    If I diveded my image in four , the export works but this solution is not convenient (I actually made tests for a fully automatised process, and we want to be sure that the indesign  component is  enough "safe")
    I try the same action with an evaluation version of indesign CC 64 bits (v9.2) and have the same behavior.
    I can imagine that there is a memory issue there, but my config seems to be strong ( windows server 64 with  16GB ram, DD with more than 100GB free). I don't undersant why-in a "full" 64 bit environnement- it is not possible to manipulate and export very large image ?
    I'm wonder If the background task is a part of the problem, and if it 's possible to disable it in CS6 or CC as in cs5 ( creates an  “DisableAsyncExports.txt” file in  Adobe InDesign executable directoty don't seems to disable it  in CC or CS6).
    Thank you for your help and good ideas..
    DC.

    this is a .tif (not a "big"tiff) compressed in LZW or ZIP.
    I just tried with another format (png), the error is the same...

  • HP LaserJet 200 color M251nw prints, but images are blurred.

    Laserjet200 (HP LaserJet 200 color M251nw) prints, but images are blurred; sometimes the entire page and other times just the right half. Staples tech said the drum could be bad. Can this be corrected? Using W7 ultimate OS.

    Hi @jimmanning ,
    I see by your post that the images are blurred. I would like to help you.
    Run a calibration on the printer.
    On the printer touch the wrench, system setup, print quality, color calibration calibrate now.
    Print a Diagnostics Page to see if you have the same results. Trying to determine if it is a hardware or software issue.
    Go to Setup, Reports, arrow down and select Diagnostics Report.
    I have provided a document with more steps for running a cleaning and checking print driver settings.
    Troubleshooting Print Quality Issues.
    Remove the toner and check to see if there is any toner on drum.
    Make sure the paper type is selected to the media that you are using, not the default setting unspecified.
    Please provide the following information so I can assist you better.
    What were the results of Diagnostics Page and Print Quality Page?
    Are you using Genuine HP Toner?
    What are the Ink levels?
    Was there any damage on the toners?
    Have a nice day!
    Thank You.
    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!
    Gemini02
    I work on behalf of HP

  • When I try to print an jpeg or png from Photoshop all it does is convert the image to a PDF & plop it on my desktop- it won't print the image. Any suggestions as to how to fix this?

    When I try to print an jpeg or png from Photoshop all it does is convert the image to a PDF & plop it on my desktop- it won't print the image. Any suggestions as to how to fix this?

    Yes, the printer is on, it’s selected in Printer Set-Up & I’ve never had this problem before. It’s definitely a Photoshop issue as every other type of file prints fine. I’ve uninstalled Pshop & am now reinstalling. Hope that will do the trick.

  • The photos in my IPhoto have all become mini-thumbnails and I can't open or edit them. When I print the image it comes out normal size.  How do I get the thumbnails back to the standard size and be able to work with them?

    The photos in my IPhoto have all become mini-thumbnails and I can't open or edit them. When I print the image it comes out normal size.  How do I get the thumbnails back to the standard size and be able to work with the photo files?

    What version of iPhoto and system are you running?  On the guess that you're running the latest iPhoto, 9.4.2, Try the following:
    1 - launch iPhoto with the Command+Option keys held down and rebuild the thumnails, Option #2.
    2 - It may take 2-3 attempts so don't give up after only one attempt.
    OT

  • How to Set up Print As Image Registry Default.

    This is a response to the archived post at:
    martin hrubes, "How to customize printing by registry - print as image" #, 6 Nov 2007 2:28 am
    I was trying to find out how to set the "Print As Image" advanced setting to be enabled by default. Here is what I discovered through trial and error.
    1. The setting is stored per user and per printer. (i.e. it has to be set for each printer for each user.)
    2. The registry setting is stored in the following key:
    [HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\8.0\General\cPrintAsImage]
    3. In this key, each printer has a separate binary value named s0, s1, s2, etc. The number increments by 1 for each printer added. If you open the value data, you will see it contains the name of the printer encoded in hex. (ex. hex coded for \\Server\Printer1)
    My recomendation is to open a pdf file in reader, go to File -> Print ->Select Desired Printer -> Click "Advanced" Options -> Enable "Print As Image" -> Click OK - Click OK again. Repeat for each printer you want to
    change.
    **NOTE** If you don't click OK both times (i.e. cancel the print dialog), the change will not be saved. You have to actually print something to the printer. If you don't want to print something, make sure the printer is offline or not accessible (unplug the network, usb, parallel, serial cable) first. Once the printer has been changed, it will keep the setting until to you change it.
    After you have set-up all of the desired printers, open RegEdit and navigate to the above key. Right click on it, and export it. Note the file name and location you are saving to. Close RegEdit. "Edit" (Right Click) the file just exported ("Opening" the file will just import it back into the registry.). Once opened, highlight and copy the registry key and all of the registry values. Paste the key and values at the end of the file. In one of the keys change "HKEY_CURRENT_USER\" to "HKEY_USERS\.DEFAULT\". Save and exit the file.
    When imported this file will enable the "Print As Image" setting for the currently logged in user plus add the setting to the default users profile so any new users to the machine will have it enabled by default also. However, it will not add it to any other user profiles that already exist on the computer. To do this, either use a login script for domain computers or add the reg file to the "All Users Startup" folder.
    It would be nice to have a setting in the deployment custimazation wizard to handle this, but for now we're stuck with enabling it the hard way.

    Yes Spyla, please see this link http://www.404techsupport.com/2008/09/09/make-adobe-reader-and-adobe-acrobat-use-print-as- image-setting-by-default-2/comment-page-1/#comment-3112.
    Allan, many thanks for your post, it certainly helped point me in the right direction.  what I found though is that you do not need to tick the print as image box at any point during the setting up of this.  All you need to do is add the registry key for whichever version of Adobe you are using for this to work.  So basically. what you are saying for each instance of Adobe is regardless of whether or not the print as image is selected, the registry key is saying always print as image for the printer as specified by the hex code. I have found that for network printers, you have to include the full path i.e. \\<servername>\<printername> e.g \\testserver\printer1 and convert all of that to hex. With later versions (9 up over), they have allowed for the string name of the printer so that it is just plain text which also makes life easier.
    What I do is apply this registry entry via Group Policy on a per room basis so that we only ever need to add one printer to the list.  you could do this globally by adding all printers sequentially using s0, s1, s2 or t0, t1, t2 etc depending on which version you are using.  The screenshot shows the registry key for 1 printer for Adobe Reader 8.
    The value data is the binary code for the actual full printer name
    This works a treat.
    Hope this helps
    Thanks

  • Action to: Print current document to PDF Printer "As Image" with Specified DPI

    I FREQUENTLY do the following task on documents.  I would LOVE to have an action that did it for me.  Can someone help me create one or point me to someone who can?
    Version: Adobe Acrobat X Pro.  Windows 7 64-bit
    With current PDF file open:
    2) Print
    3) Select PDF Printer
    4) (Under advanced printer settings) choose "Print as Image", "150" DPI.
    5) OK
    6) Save file AS the original with _printed appended to the filename.
    Image1: Printer dialogue box
    Image 2: After selecting the PDF Printer and pressing "Advanced"

    The forum added some nice links and i found my answer here http://forums.adobe.com/message/1179199#1179199 - changed the registry key permissions and it's working like a charm. Thank you.

Maybe you are looking for

  • The drivers won't install

    The drivers won't install>Hi I have a very old MP3 player which I recently started using again. It is around 5 or 6 years old and I think the model name is just Creative ZEN. The model number is DAP-HD005. Following a hardware failure on my old PC a

  • Seeburger FTP

    Hello, if i have to send a file to a FTP  using SFTP. can seeburger FTP adapter help ? and we will need send or rec FTP adapter for this? Thank you.

  • Ecommerce for mobile

    BC chat support has just told me BC does not support eCommerce for mobile site versions, so: I have a desktop version of my site that sells products, then I created a mobile version to sell products, but when I access the site on my phone, all the pa

  • Set time now

    I have an array of Time Stamps that I want to set to the Time Now when the user clicks a button for that purpose.  I get the current time and format it to my liking.  I'm just not sure how to convert it back to a time stamp and stuff it back into the

  • Invalid number in insert

    Hi folks, I am looking for a way to find which of 100 columns in a insert is causing the invalid number error. Problem is its nested deep inside several procedures so its complicated to pull out the insert and then remove line by line till I get to t