Printing on paper sizes larger then A3.

Hi all,
I tried searching the foram for this specific problem but did not get success. I am working on sending custom 2D graphic elements to the printer/plotter using both the 'PrinterJob.getPrinterJob()' and the 'ServiceUI.printDialog()' methods. It works fine for printing/plotting if the page size is up to A3 but fails once we try printing to a bigger paper size. I also have tried using the java ServiceUI.printDialog but it provides a limited list of paper sizes rather then the standard set of paper sizes provided by different vendors. I have tested following code with the adobe pdf print driver and HPDeskJet 1050C plotter but each time it appears that my A2 size is cropped and shown as just part of my graphic element covered by A3 paper size. Kindly have a look at the code below and let me know if I am doing some thing wrong. I would be really thankful to you for your time and help in this regard.
Ishfaq
//Simplified Code snippet
public void doPrint()
PrinterJob pj = PrinterJob.getPrinterJob();
pageFormat = pj.defaultPage();
try
double mi_imageableX = 0.0;
double mi_imageableY = 0.0;
double mi_width = 1190.0;
double mi_height = 1684.0;
pageFormat.setOrientation(java.awt.print.PageFormat.PORTRAIT);
paper = new Paper();
paper.setSize(mi_width,
mi_height);
paper.setImageableArea(mi_imageableX, mi_imageableY,
mi_width,
mi_height);
pageFormat.setPaper(paper);
System.out.println("page orientation is "+ pageFormat.getOrientation() +" from pageformat object. Its width and height are "
+ pageFormat.getWidth() + ", "
+ pageFormat.getHeight()
+ " and its imageable x,y,width and height values are " +
pageFormat.getImageableX () + ", " + pageFormat.getImageableY() + ", "
+ pageFormat.getImageableWidth() + ", " +
pageFormat.getImageableHeight());
catch (Exception ex)
ex.printStackTrace();
pj.setPrintable(this, pageFormat);
if (pj.printDialog())
try
pj.print();
catch (Exception p)
p.printStackTrace();
//implements the printable interface
public int print(
java.awt.Graphics graphics,
java.awt.print.PageFormat pageformat,
int pageIndex) throws java.awt.print.PrinterException
if (pageIndex > 0)return java.awt.print.Printable.NO_SUCH_PAGE ;
Graphics2D g2 = (Graphics2D) graphics;
printGraphicElements(g2);
return java.awt.print.Printable.PAGE_EXISTS;
private void printGraphicElements(Graphics2D g2d)
//draw different graphic elements
Rectangle2D.Double border = new Rectangle2D.Double(5, 5, pageformat
.getImageableWidth()-10, pageformat.getImageableHeight()-10);
g2.draw(border);
}

Apple and Canon programmers don't read here.
You need to tell them about this at www.apple.com/feedback

Similar Messages

  • Print with paper size custom?

    Hi, how to print width paper size defined by me?, actually printjob class have the selectpapersize method  with differents sizes(a4, a3, a5, letter, etc), but i need have a paper size custom,  example 500x450

    Unfortunately, there isn't a customer print size api at this time.  However, there are two things I'd recommend.  First, I'd like to encourage you to cast your vote for the the existing feature requests on our ideas.adobe.com site (here and here).
    You might also want to take a look at this post, which describes how you might be able to work around this with a bit of trial and error.
    Thanks,
    Chris

  • HP 6510e not printing custom paper sizes

    I have recently purchased a HP Photosmart 6510e printer. I called HP Tech support from the store where I bought the printer and specifically asked if this printer would print custom paper sizes. I was told it would. I tried to print an invitation on a paper size of 5.5  X  8.5. The printer keeps giving me an paper mismatch error. The paper size shows up in the list of paper sizes, but has an exclamation Point beside it. If I click on teh paper size it changes to 8.5 X 11.
    i am using a PC with Windows 7 OS.
    Thanks.

    Hi,
    The Officejet 6510 software drivers for Windows does not have an option for custom paper sizes. I checked for the paper size (5.5x8.5) you were trying to print on and it is not an option under the paper sizes. The only option is probably to have your printer replaced with a comparable Laserjet printer. Laserjet printer have a different software package and the one I checked (Laserjet Pro M275) has a Custom option. 
    Here is a link to a list of Laserjet printers
    http://shopping2.hp.com/en_US/home-office/-/products/Printers/HP%20LaserJet
    Binary_Zen (worked at HP )
    Click the white Kudos star to say thanks
    Please mark Accept As Solution if it solves your problem

  • Incorrect Number of Pages Printing - Custom Paper Size

    Hello Everyone,
    I am new to Crystal Reports but have recently become responsible for supporting a report that my office has been using for several years.  We utilize a fairly simple Crystal Report to create temporary and guest parking passes in the parking services department of my University.  These passes simply take some data from our internal database and add the current and calculated expiration dates - again, pretty simple.  These passes are then printed on a custom paper stock roughly the size of a #10 envelope that has a hole in the paper to hang around a car's rear view mirror.  This solution has been working for years but we have recently run into a very annoying problem.
    The passes are being printed from our four customer service computers.  Each computer is identical - an HP dc7900 workstation running Windows XP SP3 and Crystal Reports 11.  The computers also have identical printers; HP DeskJet 6940s.  A couple of weeks ago the customer service representatives who handle the parking passes started experiencing a problem.  When they would print a the report (the temporary or guest pass) the printer would occasionally pick up the custom page, make a strange grinding noise, and spit the page out without printing.  It was only by putting the paper back in a second or third time that the pass would actually print.  This problem seems to happen randomly with some people experiencing the problem more than others.
    Like I mentioned before, this method of creating the passes has been working for several years.  We have been using the same Crystal Report and the same printers.  One of the four CSRs has not experienced any problems with her printing - the passes come out of the printer correctly every time.  Other CSRs are able to specify only printing page 1 and the pass will print correctly; even though it is only a one page report to start with.  There is only one CSR who has the problem most frequently - about 80% of the time - and she cannot use the "print page 1" technique.  We have tried to figure out what sets her apart from the others but they should all have identical machines.
    In troubleshooting the problem I have attempted everything I could think of.  Our first thought was to clean the printer or swap it out with a spare, but this did not solve the problem.  Since it was happening on multiple computers, we thought the report was to blame.  We checked to make sure all of the data was fitting withing the margins, there were no extra sections or section breaks, and that the report had not been corrupted somehow.  We also tried to create a new report from scratch - again none of these actions helped.  I then tried to upgrade one computer to all of the latest updates available for Crystal Reports 11 from the website.  These updates did not solve the problem either.  The final straw was to re-image the computer to a known good state, but this did not help.
    Since we are still not sure of the root cause of the problem I have posted a similar topic on HP's customer support forum.  I was hoping that someone in the Crystal Reports community may have some insight into my problems as well.  I have searched through the forums previously and that's where I got many ideas including updating, checking for hidden/over sized text, changing the print engine, and turning of Data Execution Prevention.  However, none of these suggestions improved our situation.  Does anyone have any insights as to what could be causing our problem?  It is getting very annoying for the CSRs and I feel bad that I have not been able to come up with a solution for them.
    To recap, here are my environment specifications:
    -Crystal Reports 11
    -Windows XP Service Pack 3 + all available Windows Updates
    -HP dc7900 Workstations
    -HP DeskJet 6940 printers connected through USB
    -Microsoft Office 2007
    -McAfee Anti-Virus 8.7i
    I appreciate any help or guidance anyone can provide.  Thank you in advance for your support.
    Jeff

    The "strange grinding noise" leads me to believe it is the printer or paper stock.  I know you said you changed printers, but did you swap the printer having the problem with the one that never does?  My HP color laserjet makes a strange grinding noise now that the fuser needs to be replaced (which I will be doing this weekend).  Usually the louder the noise, the worse the printout looks...
    Nothing in Crystal should cause a printer noise...
    HTH,
    Carl

  • Can't duplex print B4 paper size with Snow Leopard and HP8100N

    Apple print drivers dumped the standard European paper size B4 (see ISO 216 for specs) many OS's ago, however, I was able to duplex print B4, which is a standard size for the HP8100 trays, using the HP Duplexing accessory, by specifying a 'custom' paper size (10.14 x 14.33). Now, with Snow Leopard and the 10.6.4 and the updated HP8100 print driver from Apple, I get the message "The Duplex Option, Flip on Short Edge" is not available when the destination paper is set to Custom."
    It seems the easiest solution would be for Apple to bring back the B4 paper size--I don't know why they eliminated it. The next solution would be for Apple or HP (whoever is responisble for the print driver) to back up to whatever allowed duplexing of custom sizes in all recent OS's up to Snow Leopard.
    I have thousands of pages of music to print and manual duplexing just isn't an option. Anybody have any work-around ideas?

    try converting your cmyk  doocument to rgb and then print

  • How do I set the print and paper size in iPhoto 5

    Can somebody please help. How do you set up iPhoto 5 so that you define both the the size of the print and the photo paper you use?
    For example, I wish to print a 4.5cm x 3.5 cm photo on 6x4 (or 15cm x 10cm to keep all the units the same) paper.
    I've seen a post saying how to do it in iPhoto 8, but the drop-downs are different.

    I do not remember the locations in iPhoto 5 but there are probably three places to mess with
    1 - set the paper size
    2 - set the print size
    3 - set the paper tray for the printer to use that has the paper size that you set in step 1
    these may be in the print sequence or under the file menu as page set up (or similar). If these are not obvious try the Help menu
    LN

  • Help with Java Printing-Custom paper sizes

    Hi,
    I'm trying to print documents with custom paper sizes out of java.
    I can print fine when I don't try to set the MediaSize to a custom size or when I use already named constants like: "MediaSizeName.JIS_B4"
    The error message I get is this:
    java.lang.ClassCastException
         at javax.print.attribute.AttributeSetUtilities.verifyAttributeValue(Unknown Source)
         at javax.print.attribute.HashAttributeSet.add(Unknown Source)
         at hello.Printy.printDocument(Printy.java:103)
         at hello.Printy.main(Printy.java:135)
    The offending line(103) looks like this:
    pras.add(new MediaSize(1,10,MediaSize.INCH ));The function that its from looks like this:
    public  void printDocument()
    try
              System.out.println("input file name is");
         System.out.println(inputFileName);
    PrintRequestAttributeSet pras = new HashPrintRequestAttributeSet();
    DocFlavor flavor = DocFlavor.INPUT_STREAM.AUTOSENSE;
    PrintService printService[] = PrintServiceLookup.lookupPrintServices(flavor, pras);
    PrintService defaultService = PrintServiceLookup.lookupDefaultPrintService();
    PrintService printPrintService = null;
    // didn't work pras.add(new MediaSize(1,10,MediaSize.INCH) );
    PrintService service = ServiceUI.printDialog(null, 200, 200,printService, defaultService, flavor, pras);
    if (service != null)
         System.out.println("There is a service aunty-may!!");
    DocPrintJob job = service.createPrintJob();
    FileInputStream fis = new FileInputStream(getInputFileName());
    DocAttributeSet das = new HashDocAttributeSet();
    //pras.add(new MediaSize((float)3.25, (float)4.75, Size2DSyntax.INCH ) );
    // - works
    //pras.add(MediaSizeName.JIS_B4);
    pras.add(new MediaSize(1,10,MediaSize.INCH ));
    //pras.add(new MediaSize(1,10,MediaSize.INCH) );
         System.out.println("Doc has been set to custom size");
    Doc doc = new SimpleDoc(fis, flavor, null);
    job.print(doc, pras);
         System.out.println("any doc for you?");
    catch (Exception e)
    e.printStackTrace();
    }Any help with this would be greatly appreciated. I'm new to java but I've programmed a bunch in c++.

    Hmm ... no real help, but I found this note in the API:
    MediaSize is not yet used to specify media. Its current role is as a mapping for named
    media (see MediaSizeName). Clients can use the mapping method
    MediaSize.getMediaSizeForName(MediaSizeName) to find the physical dimensions of
    the MediaSizeName instances enumerated in this API. This is useful for clients which
    need this information to format & paginate printing.

  • Adobe PDF printer (adding paper sizes)

    I just reinstalled Adobe Acrobat 6.0 on a new computer and it only shows stadard paper sizes like 8-1/2 X 11, 11 X 17, etc.. My old computer would have all of the Architectural paper sizes as well (ANSI sizes, Arch sizes, and ISO sizes). How do I get these paper sizes onto the new machine?
    Thanks in advance.
    Ron

    Bon dias Mr. Spot,
    Alas, you are at a "user to user" forum.
    Perhaps not the "wrong avenue" but maybe not the "boulevard" desired, eh?
    Adobe's "Support Home" is at:
    http://www.adobe.com/support/
    Be well...

  • How to print custom paper size with borderless?

    Hi, I want print in custom peper size (6"x13") and i want print with borderless, but the print properties dont have the options to select custom size, any idea how can I do this work? thanks.

    Hi, Its specs says it supports: Left: 3.3 mm (0.13 inch)
    Right: 3.3 mm (0.13 inch)
    Top: 3.3 mm (0.13 inch)
    Bootom: 3.3 mm (0.13 inch) and 12 mm (.47 inch) for the following list of papers: U.S. Letter
    U.S. Legal
    A4
    U.S. Executive
    U.S. Statement
    8.5 x 13.0 inch
    B5
    A5
    Cards
    Custom-sized media
    Photo media Source: http://support.hp.com/au-en/document/c03565793 Regards.  

  • HP K 8600 printer 12x18" paper size

    How can I print on 12"x18" paper on my K 8600 printer?

    You may have better luck asking for a printer that can scan 12x18 on the Enterprise Business Support Forums.  This forum is more for small to medium businesses and a printer with those capabilities are handled by a different department.  I tried to research the answer for you and found a link here but without some more information, I will have a hard time finding the best answer to this question. I hope this helps!
    Don't forgot to say thanks by giving "Kudos" if I helped solve your problem.
    When a solution is found please mark the post that solves your issue.
    Every problem has a solution!

  • Who can I speak for CS5 technical support. I am having issues with the printing custom paper size! please please please help.

    Is there any one that can help you on Adobe? I have been on hold twice for 30min and I need help. Contact line is for something else not to happy. I downloaded Yosemite and now my CS5 when I custom print it shuts down the whole program and restarts again. Yes I did restart com+shift+op and yes I restarted computer. And yes called 1800-642-3623 no help. What the heck Adobe!!!!! and now this?????

    Provide the name of the program you are using so a Moderator may move this message to the correct program forum
    This Cloud forum is not about help with program problems... a program would be Photoshop or Lighroom or Muse or ???
    >downloaded Yosemite and now my CS5 when I custom print it shuts down
    CS5 was written LONG before Yosemite was available, and CS5 is no longer updated... have you told Apple that their new operating system breaks your old program?
    Yosemite sometimes has problems, often related to "default" permissions needing to be changed
    -one person's solution https://forums.adobe.com/thread/1689788
    -http://blogs.adobe.com/creativecloud/creative-cloud-and-yosemite/
    -https://helpx.adobe.com/x-productkb/global/mac-os-yosemite-compatability.html

  • I customize my paper size and print size and am then viewing a photo on my screen. I print it out and it chops off about 5% of all edges of my original photo on the screen. Why does it do that? It is driving me crazy. I use an Epson Photo 2200 printer.

    I customize my paper size and print size and am then viewing a photo on my screen. I print it out and it chops off about 5% of all edges of my original photo on the screen. Why does it do that? It is driving me crazy. I use an Epson Photo 2200 printer

    What print and paper sizes are you using?  Are you trying to print a borderless print?  Does your printer support borderless for that particular size?  Are you printing to the custom stock size or to a larger stock size?
    OT

  • Paper Size issues with CreatePDF Desktop Printer

    Are there any known paper size issues with PDFs created using Acrobat.com's CreatePDF Desktop Printer?
    I've performed limited testing with a trial subscription, in preparation for a rollout to several clients.
    Standard paper size in this country is A4, not Letter.  The desktop printer was created manually on a Windows XP system following the instructions in document cpsid_86984.  MS Word was then used to print a Word document to the virtual printer.  Paper Size in Word's Page Setup was correctly set to A4.  However the resultant PDF file was Letter size, causing the top of each page to be truncated.
    I then looked at the Properties of the printer, and found that it was using an "HP Color LaserJet PS" driver (self-chosen by the printer install procedure).  Its Paper Size was also set to A4.  Word does override some printer driver settings, but in this case both the application and the printer were set to A4, so there should have been no issue.
    On a hunch, I then changed the CreatePDF printer driver to a Xerox Phaser, as suggested in the above Adobe document for other versions of Windows.  (Couldn't find the recommended "Xerox Phaser 6120 PS", so chose the 1235 PS model instead.)  After confirming that it too was set for A4, I repeated the test using the same Word document.  This time the result was fine.
    While I seem to have solved the issue on this occasion, I have not been able to do sufficient testing with a 5-PDF trial, and wish to avoid similar problems with the future live users, all of which use Word and A4 paper.  Any information or recommendations would be appreciated.  Also, is there any information available on the service's sensitivity to different printer drivers used with the CreatePDF's printer definition?  And can we assume that the alternative "Upload and Convert" procedure correctly selects output paper size from the settings of an uploaded document?
    PS - The newly-revised doc cpsid_86984 still seems to need further revising.  Vista and Windows 7 instructions have now been split.  I tried the new Vista instructions on a Vista SP2 PC and found that step 6 appears to be out of place - there was no provision to enter Adobe ID and password at this stage.  It appears that, as with XP and Win7, one must configure the printer after it is installed (and not just if changing the ID or password, as stated in the document).

    Thank you, Rebecca.
    The plot thickens a little, given that it was the same unaltered Word document that first created a letter-size PDF, but correctly created an A4-size PDF after the driver was changed from the HP Color Laser PS to a Xerox Phaser.  I thought that the answer may lie in your comment that "it'll get complicated if there is a particular driver selected in the process of manually installing the PDF desktop printer".  But that HP driver was not (consciously) selected - it became part of the printer definition when the manual install instructions were followed.
    However I haven't yet had a chance to try a different XP system, and given that you haven't been able to reproduce the issue (thank you for trying), I will assume for the time being that it might have been a spurious problem that won't recur.  I'll take your point about using the installer, though when the opportunity arises I might try to satisfy my cursed curiosity by experimenting further with the manual install.  If I come up with anything of interest, I'll post again.

  • Printing Invoice Dot Matrix Printer  in the paper size 9.5 x 11 inches

    Dear All, 
    Am using Pre-printed Stationery but I have a problem with  printing configuration for AR Invoice through Dot Matrix Printer in paper size 9.5 x 11 inches, when command to print the first page it print perfect but the continuation  is not start on the body of the contents but it start from the header of the pre-printed stationery  any one with experience on this please share with me.
    Regards
    Grayson

    hi,
    Have you customized PLD according to paper size ?
    Check whether you customized fields in start of report area ? If yes then it will be printed
    only on first page.
    Check for printer supported by B1 in below link
    [SAP Business One Best-Practice System Setup and Sizing document ]
    Jeyakanthan

  • Customer paper size setting 8.8 in (width)x 5.5 in (height) print out

    Hello, Expert
    I have a question print out paper size that is a customer paper size setting 8.8 in (width)x 5.5 in (height) in Dot-Matrix printer,
    When print out that orientation from protrait to landscape.
    I used CR2008 and upgrade to SP4.
    Hope anybody help me
    Thanks.

    Hi,
    --you just go to file menu and select 'Page setup' option, then it will display new window.
    --In this window you will select the Orientation as 'Landscape' and in page options please specify your required page heigth and width in'vertical' and 'Horizantal' boxes. Then it will display your required page format.
    Thanks,
    Naga.

Maybe you are looking for

  • No thumbnails for .EPS files in Finder Cover Flow?

    I found a plugin for this: http://www.eternalstorms.at/staff/index.html It worked for one day, but today I can no longer preview .eps files. Any ideas?

  • Bootcamp related AD login issues

    Hey guys, I work at a school where we have 250+ 20" iMac7,1 aluminium models. They are all running bcamp with winxp SP3 one side, and osx 10.5.4 on the other side. Now what happens is, if the machines are in winxp for a long period of time and then r

  • CF Builder CFML toolbar

    I've been using CFEclipse for years, looking at CF Builder as an alternative. I installed the trial, been using it for a couple of days and like it so far, but I can't figure out (and I spent way to much time trying) how to get the CFML toolbar to sh

  • Any new features besides Folders?

    Is there anything new with iOS4 besides Folders? I can't believe I wasted an hour installing this OS, only to lose speed and battery life. Where's the home screen picture feature? Multitasking? Improved battery life? I've gone through all the setting

  • Freezing right after startup

    Hi, Recently, my macbook pro has been freezing on me right after start up. It boots fine and then right after loading my desktop, it freezes. The mouse curser is always at the apple icon on the top left corner. Is there anyway to fix this problem oth