Page layout or printing problem?

I'm trying to create a layout to print my son's Eagle Scout invitations and I'm stumped. The cards will be 5" x 7" when folded as a 4 page. I need to feed them through the printer flat and as a 7 x 10". How do I get the two inside pages layed out? I've tried a couple of ways and I can't figure it out. Any help would be appreciated. If this doesn't make sense, ask me some questions and I'll clarify as best I can. thanks
emac 700   Mac OS X (10.4.9)   Appleworks 6.2.9

Hi Bob,
What you're making is essentially a single sheet, printed both sides.
Open a new Draw document, then go Format > Document... and set document size to 2 pages wide by 1 page high.
Go File > Page Setup... and set the orientation to one of the Landscape settings (there may be only one landscape setting. You can set a Custom Page size, but I'd just leave it at US Letter and place items on the page's that they appear in the right positions on the actual sheets.
Set up a pair of Test pages to determine where to place the elements of your invitation.
1.
Use the Rectangle tool to draw a 1/2 inch square. Place the square at the top left of the left page. Press command-D to duplicate it, then, without deselecting the second square, use the arrow keys to move it up to match the top of the first square, and right until the left edge of the new square is on top of the right edge of the original (ie. the two squares are touching each other). Press command-D repeatedly until the row of squares runs from one side of the drawing space to the other.
2.
Press command-A to select all of the squares.
Press command-D to duplicate the full set.
Without deselecting the second set, use the arrow keys to line up the vertical lines in the two sets of squares, then to move trhe new set down until its top edge is on the bottom edge of the old set.
Press command-D repeatedly until the sets of squares cover the whole document.
3.
Mark the top row by selecting the first square, and every third one after it, (ie. #s 1, 4, 7, 10... then using the Fill button and the Patterns Palette (both near the bottom of the Tools) to fill those squares with a pattern that will allow you to identify the edges of the printed page that are the "top" of the inside and outside of the card. Siomilarly, mark every fourth square in the leftmost column of the test drawing.
4.
On two sheets of plain paper (letter size), use a red pen or pencil to draw a line across the (portrait oriented) page 10" down from the top, and another from top to bottom 7" from the left* edge of the paper.
*This assumes that your printer has a fixed paper guide on the right, an adjustable guide on the left, and that the paper enters the printer face up and head first.
Place the two marked sheets in the feed tray and print a copy of the test drawing.
From the result you will be able to determine what portion of the available workspace will be printed on the cards and the orientation of the printing wrt the card stock. Anything that's inside the largest outlined area on each page will be on the card. Cut out the area and fold the page to match the folding of the cards to determine where each page will fall.
Use that information to locate text and graphics on the drawing. Place the text for each page of the card into separate text frames to allow for easy adjustment to its placing if necessary. Be sure to leave some white space around the edges to allow for minor errors in paper handling by your printer.
When printing, it's probably best to do a full print run of Page 1, then flip the cards over and repeat, printing Page 2. I would print a single copy of the second run to ensure I had re-inserted the paper with the orientation to get the inside 'right side up' before committing to the full run.
With two pages side by side, your pages will line up like this:
Outside Back, Outside Front, Inside Front (left), Inside Back (right).
Regards,
Barry

Similar Messages

  • Page Layout when Printing slides from Keynote

    I don't often print my Keynote presentations, but I would like to be able to print FOUR slides on one sheet (landscape format) with one slide in each quadrant or corner. All I can select --as far as I can tell-- is a single column with all 4 slides minutely scaled down the page. The slides are far toooooooo small to read. CAN I CHANGE THE LAYOUT FOR PRINTING SO THAT HAVE 2 COLUMNS OF 2 SLIDES EACH? Many thanks for your suggestions!

    When I do Print > Handouts > 4 slides per page, it puts the slides stacked on top of one another (ie 1 column of slides, 4 rows). I assume you would want to have 2 columns of slides and two rows. I don't know how to do this in Keynote, but if you are in Keynote, just do a File > Export > PDF. If you are printing in color, I'd select Image Quality > Best. Once you have the PDF of the presentation, open it with Preview. From Preview, do a File > Print. When the Print "window" comes up, you select your landscape orientation. At the bottom of the window, you will see a dropdown option that says "Images per page" and select 4. This should do the trick.
    Be careful when you do the export from Keynote to PDF. There are a lot of options to include or exclude page numbers, builds, etc. in the PDF.
    Hope this helps.

  • Preserve Page Layout when printing to FlashPaper2 Printer

    Hello everyone,
    Does anyone have any ideas on how to preserve the page layout
    that comes with a document to print on a common printer the same
    way it prints with FlashPaper printer [from the File>Print
    common dialogue]? It is like the whole object positioning gets the
    confusion worse confused drill!
    Using WinXP SP2 IE, Macromedia FlashPaper 2, No antivirus,
    firewalls or any blockers, OS and FlashPaper fully updated, tasks
    running: only system tasks, MS Office and flashpaper. Fonts:
    default Windows fonts, no other fonts installed on the system.
    Thank you in advance!

    Hi Camogenny,
    I'm sorry to hear that you are having difficulties printing with your iPad to your Officejet Pro 8600.
    AirPrint doesn't have a way to change the settings. You can always check the AirPrint Basics document provided by Apple.  There are more setting choices if you use the HP ePrint app or the HP All-in-One Printer Remote app. I have included the FAQ documents for both apps for your reference. Both apps should work for you without setting up the ePrint feature of the printer as long as the printer and iPad are both connected to the same wireless network. 
    Happytohelp01
    I work on behalf of HP
    AirPrint Basics
    http://support.apple.com/kb/HT4356#How_to_Print
    HP ePrint Mobile App FAQs
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&dlc=en&docname=c01923321
    HP All-in-One Printer Remote Mobile App FAQs
    https://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&docname=c03561640

  • JSP page to be printed - problem with layout of printable page

    I have a JSP that collects some information from a variety of tables in my DB(SQL Server) and displays the results on an HTML page that is created for printing an official document. At the end of the document there is space for people to sign for their names and the problem comes as follows. There is always a table full of records that is displayed in the middle of the page and its size and contents are always subject to change in relation to the query previously executed. In the case of a big table with more records to be displayed than what can normally be displayed on ONE page, I want to cut the table at a certain point and when I do print preview on IE 5.5, I would like to see the rest of the table displayed on the second page with the SAME TABLE HEADINGS as in the first page. Is there a way to do that in co-op with IE 5.5?

    Printing from HTML is usually a mess. Generate a PDF if possible.
    Failing that you could try starting a new table every (say) ten rows and fixing the font size using a style sheet. It would depend how much variation there is in the printing devices you're delivering to.
    Another (extreme) option is to deploy a small signed applet (or Java Web Start application) that would receive the data in its parameters and simply display a "print" button on screen. It would then pop up the print dialog and perform pagination itself. Might take a lot of work to get it just right, though.

  • User Defined Field Print Layout Designer print problem

    I am having a problem with a user defined field in the Business Partner - Addresses table. The user defined field is a "directions" text field that is intended to print on packing slips generated from the sales order. When I use the PLD to add the UDF in the header or in the table, all data lines in the body of the report repeat.
    Please advise if others are seeing this and what work around or SAP plans exist to resolve.
    Glen Kinney
    Corrpac
    [email protected]

    Hi Glen,
    I am facing the same problem.
    I need to add UDFs in Business Partners - Addresses at row level. The field will be used for some Taxation Nos. like CST, LST, VAT. I have tried to add. the fields are added and data saved too.
    But when I am going to PLD of Invoice and tried to get, the Business Partners - Addresses Table not showing in the list.
    Shell I have your help to resolve this.
    Thanks a lot.
    With Warm Regards,
    Chintesh Soni
    India

  • Java printing problem how to print in multiple pages

    hi all
    i'm trying to print the output of my application
    no problems with the 1st page but i'd like to tell to my app to print in a brand new page if the content exceed the printable length of the first page. i have 2 classes: printer and Document. the last one implements Printable
    Printer code
    PrinterJob printJob = PrinterJob.getPrinterJob ();
          //--- Create a new book to add pages to
          Book book = new Book ();
          //--- Add the cover page using the default page format for this print job
          //book.append (new IntroPage (), printJob.defaultPage ());
          //--- Add the document page using a landscape page format
          PageFormat documentPageFormat = new PageFormat ();
          documentPageFormat.setOrientation (PageFormat.LANDSCAPE);
          //Document doc=new Document();
          //book.append (doc, documentPageFormat);  
          //book.append (new Getter(), documentPageFormat);  
          book.append (new Document(), documentPageFormat);  
          //--- Tell the printJob to use the book as the pageable object
          printJob.setPageable (book);
          System.out.println("AAAAAAAA" +book.getNumberOfPages());
          //--- Show the print dialog box. If the user click the
          //--- print button we then proceed to print else we cancel
          //--- the process.
          if (printJob.printDialog()) {
             try {
                printJob.print(); 
             } catch (Exception PrintException) {
                PrintException.printStackTrace();
          }Document code:
    public class Document implements Printable
        private final static int POINTS_PER_INCH = 72;
        Calendar now;
        DateFormat df;
        Date date;
        double width;
        Point2D.Double pen;
        Graphics2D g2d;
        LineBreakMeasurer lineBreaker;
        AttributedString paragraphText;
        TextLayout layout;
        double maxPen=0.0;
        static int x1,x2,x3,x4,x5,x6,x7,x8,x9,x10;
        static double intestY, textX, textY;
        public Document()
        public int print (Graphics g, PageFormat pageFormat, int page)
            pen = new Point2D.Double();
            //setto calendario e DateFormat per orario
            df=new SimpleDateFormat("HH:mm:ss:SSS");
            //now=GregorianCalendar.getInstance();       
            //date=now.getTime();
             //--- Create the Graphics2D object
             g2d = (Graphics2D) g;
             //--- Translate the origin to 0,0 for the top left corner
             g2d.translate(pageFormat.getImageableX (), pageFormat.getImageableY ());        
             g2d.setColor(new Color(204,204,204));
             Font titleFont = new Font ("arial", Font.PLAIN, 10);
             Font textFont = new Font ("arial", Font.PLAIN, 8);
             g2d.setFont (titleFont);
             //--- Compute the horizontal center of the page
             FontMetrics fontMetrics = g2d.getFontMetrics ();
             String text = "ABSOL s.r.l. - LISTA APPUNTAMENTI DI Marcello Baiguera";
             textX=(pageFormat.getImageableWidth() - fontMetrics.stringWidth(text))/2;
             textY =7.2;
             //g2d.drawString (text, (int) textX, (int) textY);
             g2d.setFont (textFont);
             fontMetrics = g2d.getFontMetrics ();        
             //linea orizzontale sotto il titolo
             textY=textY + fontMetrics.getDescent();
             //g2d.drawLine(0, (int)textY, (int)pageFormat.getImageableWidth(), (int)textY);
             //prima linea verticale - margine sx
             //g2d.drawLine(x1, (int)textY, x1, (int)pageFormat.getImageableHeight());
             //seconda linea vert 
             x2=x1+fontMetrics.stringWidth("ven. 31/12/2003 ");
             //g2d.drawLine(x2, (int)textY, x2, (int)pageFormat.getImageableHeight());
             //terza linea vert         
             x3=x2+fontMetrics.stringWidth("88:88 ");
             //g2d.drawLine(x3, (int)textY, x3, (int)pageFormat.getImageableHeight()); 
             //quarta linea vert         
             x4=x3+fontMetrics.stringWidth("Marcello Impegnato text text text text");
             //g2d.drawLine(x4, (int)textY, x4, (int)pageFormat.getImageableHeight());
             //quinta linea vert         
             x5=x4+fontMetrics.stringWidth("Sig D'alessio Gigione ");
             //g2d.drawLine(x5, (int)textY, x5, (int)pageFormat.getImageableHeight());   
             //sesta linea vert         
             x6=x5+fontMetrics.stringWidth("Via del PonteVico, 222222 ");
             //g2d.drawLine(x6, (int)textY, x6, (int)pageFormat.getImageableHeight());
             //settima linea vert         
             x7=x6+fontMetrics.stringWidth("del Bagnolo Del Mella (bs) ");
             //g2d.drawLine(x7, (int)textY, x7, (int)pageFormat.getImageableHeight());
             //ottava linea vert         
             x8=x7+fontMetrics.stringWidth("333/78547888 ");
             //g2d.drawLine(x8, (int)textY, x8, (int)pageFormat.getImageableHeight());       
             //nona linea vert         
             x9=x8+fontMetrics.stringWidth("Rinnovo Scadenza Il ");
             //g2d.drawLine(x9, (int)textY, x9, (int)pageFormat.getImageableHeight());
             //decima linea vert         
             x10=x9+fontMetrics.stringWidth("Sandropolitan")+2;
             //g2d.drawLine(x10, (int)textY, x10, (int)pageFormat.getImageableHeight());
             intestY=textY+12;
             text = "DATA";
             textX= x1+((x2-x1)-fontMetrics.stringWidth(text))/2;                 
             //g2d.drawString (text, (int) textX, (int) intestY); 
             text = "ORA";
             textX= x2+((x3-x2)-fontMetrics.stringWidth(text))/2;                 
             //g2d.drawString (text, (int) textX, (int) intestY); 
             text = "CLIENTE";
             textX= x3+((x4-x3)-fontMetrics.stringWidth(text))/2;
             //g2d.drawString (text, (int) textX, (int) intestY); 
             text = "REFERENTE";
             textX= x4+((x5-x4)-fontMetrics.stringWidth(text))/2;
             //g2d.drawString (text, (int) textX, (int) intestY); 
             text = "INDIRIZZO";
             textX= x5+((x6-x5)-fontMetrics.stringWidth(text))/2;
             //g2d.drawString (text, (int) textX, (int) intestY); 
             text = "CITTA'";
             textX= x6+((x7-x6)-fontMetrics.stringWidth(text))/2;
             //g2d.drawString (text, (int) textX, (int) intestY);        
             text = "TELEFONO";
             textX= x7+((x8-x7)-fontMetrics.stringWidth(text))/2;
             //g2d.drawString (text, (int) textX, (int) intestY); 
             text = "MOTIVAZIONE";
             textX= x8+((x9-x8)-fontMetrics.stringWidth(text))/2;       
             //g2d.drawString (text, (int) textX, (int) intestY); 
             text = "APP. CON";
             textX= x9+((x10-x9)-fontMetrics.stringWidth(text))/2;
             //g2d.drawString (text, (int) textX, (int) intestY);       
             textY=intestY+6;
             //g2d.drawLine(0, (int)textY, (int)pageFormat.getImageableWidth(), (int)textY);
             textY=textY+12;
             double initialTextY=textY;
             System.out.println("maximum Y: "+pageFormat.getImageableY());
             Vector maxPens=new Vector();
             boolean vai=true;
             for(int i=0;  i<12; i++ )
                 if(textY<400.00 && vai)
                     System.out.println("");
                     System.out.println("-- "+i+" --"+df.format(new Date()));
                     //data
                     text = Integer.toString(i);
                     //textX= x1+((x2-x1)-fontMetrics.stringWidth(text))/2;
                     pen.x=x1+2;                
                     printJustified(text, x2-x1-4,textY);
                     //ora
                     text = "10:00";
                     //textX= x2+((x3-x2)-fontMetrics.stringWidth(text))/2;          
                     pen.x=x2+2;                
                     //printJustified(text, x3-x2,textY);
                     //cliente
                     text = "Costruzioni Benedini";        
                     pen.x=x3+2;
                     //printJustified(text, x4-x3-4,textY);
                     //referente
                     text = "Sig. Alessandro mmmm mmmm mmm mmmm mm  ";
                     pen.x=x4+2;
                     //printJustified(text, x5-x4-4, textY);
                     //indirizzo
                     text = "Via del Ca'";
                     pen.x=x5+2;
                     //printJustified(text, x6-x5-4,textY);
                     //citta' + (prov)
                     text = "Pozzolengo S. (VR)";
                     pen.x=x6+2;
                     //printJustified(text, x7-x6-4,textY);
                     //telefono
                     text = "335/6998523";
                     pen.x=x7+2;
                     //printJustified(text, x8-x7-4,textY);
                     //motivazione
                     //text = "Primo Appun";
                     pen.x=x8+2;
                     //printJustified(text, x9-x8-4,textY);
                     //Appuntamento con
                     //text = "Alessandro";
                     pen.x=x9+2;
                     //printJustified(text, x10-x9-4,textY);        
                     //textY=pen.y+12;
                     try
                        textY=Double.valueOf(maxPens.get(i).toString()).doubleValue()+12;
                        System.out.println(i+" recuperato");
                     catch(ArrayIndexOutOfBoundsException a)
                         maxPens.add(Double.toString(maxPen));
                         textY=maxPen+12;
                         System.out.println(i+" aggiunto");
                 else
                     System.out.println("aaaaaaaaaaaaaa ("+textY+")");
                     vai=false;
             //--- Validate the page
             return (PAGE_EXISTS);
             //return(NO_SUCH_PAGE);
          void printJustified(String text, double width, double y)
             pen.y=y;
             String txt=text;   
             System.out.println("text: "+text+" - pen.y= "+y);
             paragraphText = new AttributedString (txt);
             paragraphText.addAttribute (TextAttribute.FONT, new Font ("arial", Font.PLAIN, 8));
            //--- Create a LineBreakMeasurer to wrap the text for the TextLayout object
            //--- Note the second parameter, the FontRendereContext. I have set the second
            //--- parameter antiAlised to true and the third parameter useFractionalMetrics
            //--- to true to get the best possible output
            lineBreaker = new LineBreakMeasurer (paragraphText.getIterator(), new FontRenderContext (null, true, true));
             //--- Create a Vector to temporaly store each line of text
             Vector lines = new Vector ();
             //--- Get the output of the LineBreakMeasurer and store it in a Vector
             while ((layout = lineBreaker.nextLayout ((float) width)) != null) {
                lines.add (layout);
             pen.y = pen.y - 7.373047;
             //--- Scan each line of the paragraph and justify it except for the last line
             for (int i = 0; i < lines.size (); i++)
                //--- Get the line from the vector
                layout = (TextLayout) lines.get (i);
                //--- Check for the last line. When found print it
                //--- with justification off
                //--- Align the Y pen to the ascend of the font, remember that
                //--- the ascend is origin (0, 0) of a font. Refer to figure 1
                pen.y += layout.getAscent ();
                //--- Draw the line of text
                layout.draw (g2d, (float) pen.x, (float) pen.y);
                //--- Move the pen to the next position adding the descent and
                //--- the leading of the font
                pen.y += layout.getDescent () + layout.getLeading ();
                if (pen.y>maxPen)
                    maxPen=pen.y;
                    System.out.println("-----------------------------------------------txt: "+txt+" new maxPeny= "+maxPen);
       }in Document i use the printJustified method that simply splits the text in rows.
    i'll don't explain the method 'cause my question is another.
    thanx a lot
    please!!!
    sandro

    Basically you need to write some smart code. Your application needs to be able to determine what to print on each page because the print api will call the following function passing a page number. Your application must know what to paint on each page. If you think it sounds complicated you better believe it is !!
    public int print(Graphics g, PageFormat pf, int pageIndex) {
    PageNumber = pageIndex+1;
    // Need to calc the pages here
    page = (Graphics2D)g;
    calcPages();
    say("Printing page " + PageNumber);
    if (PageNumber <= getNumPages()) {
    paint(g);
    return Printable.PAGE_EXISTS;
    } else
    return Printable.NO_SUCH_PAGE;
    The code above comes from my report printer class and as you can see a calcPages() function is called prior to the paint() function being called. This function sets up a whole bunch of things including exactly what needs to be printed on each page. Note that the calcPages() function is smart enought to simply return is it has already been called. This way the paint function simply checks the PageNumber variable when painting to establish what to draw on the page.
    So imagine when you are generating a very large report from a database ! You basically have to process the report doing all the formatting prior to actually allowing the paint function to be called. Its quite a complicated business but fortunately even the largest report does'nt really take up that much memory. I basically just create buffers of the data for each page - its a bit of a pain but the same logic is required for pagination anyway.
    Be happy to provide you with the source code but you might need the whole application to get anything working.

  • Oracle reports Page layout problem in HTML

    Hi,
    I am Using Oracle Reports6i to create my web reports. I found some problem with my reports page layout.
    When I print my report from browser which is generated in html, it prints my first page's page number in begining of my second page and it continues in all pages disordering the report.
    When I try to print from report builder It prints perfectly.
    I want to know how do I control my page layout in html without asking user to set anything in browser each time they print.
    Please try to help me with this.
    Thank you
    Regards
    Rajesh Sharma
    null

    dear rajesh
    i was also facing same problem,try these things it may help
    change the desformat=htmlcss
    destype=file
    and desname=(name of file where
    u want the output) ex. c:\pi.html
    after that open that file i believe it wiil be alright,pls confirm me at [email protected]
    bye
    null

  • Half-page, 2 per page layout won't print

    Brother HL-4070CDW stopped printing Half-page or 2 per page layout after installing Snow Leopard 10.6.2 (with Brother driver update of 11/9/09). Anyone else have this problem, solution?

    That did fix it, thanks so very, very much! I went to the " prints to a small portion of the page" and changed the paper size to A4 like it said and it worked immediately. This was the first time that I found this particular information listed on Firefox after looking at numerous questions/answers. Again, thanks so very much!!!!!!

  • Need suggestions on a single page printing problem

    I realize this may not be the appropriate place to post this question, but I will take any suggestions (including where else I may find the answer).
    Trying to be brief:
    Brand new iMac w/SL 10.6 up to date)
    New HP Photosmart copy/scan/printer (D110 e-Print; wireless)
    Filemaker Pro 6.
    I bring up the latter (FMPro) because I have one file, one particular layout that refuses to print.
    It SHOULD print all found records
    Print preview layout in FMPro SHOWS ALL RECORDS layed out correctly on an 8.5x11" landscape
    Telling it to print, gets a -9705 error which leads to one of two things:
    If I try to print, it only prints ONE RECORD (the first record)
    or
    If I try to open it in Apple's Preview application , or Save to PDF, neither of those apps open or display the page
    Really odd. I haven't had any printing problems in other programs (Safari web page, etc.)
    I've search Filemaker and Apple and HP sites and can't find the -9705 error any where
    It may just be an incompatibility issue with an 8 year old piece of software (which seems to run fine except for the printing)
    Thanks for any suggestions

    Thank you for that - D'OH! - moment.
    I had been googling for -9705, which I believe was finding everything BUT the term 9705 due to the 'minus' sign in front of it.
    Doing it correctly, got me a hit on the FMPro site which had a font suggestion I think may be the answer.
    Thanks!

  • Print problem. trying to print a document in Preview, the start of the text prints half way down the page not at the top of the page?

    Print problems.  Printing out an email the text starts half way down the page.  I tried taking a picture of the text I wanted to print, tried to print from Preview and have the same problem.  If anyone has any ideas I would really apreciate it. Thanks Penny

    One more thing to check:  System Preferences/Print & Scan.  Make sure your printer is set as Default.
    I'm using OS X 10.8 and I don't see Page Setup anymore. If you have access to Page Setup, check to see if there are any adjustments to make there.

  • Laserjet 2605dn color printing problem, Blue/green line on page.

    I have an HP color laserjet 2605dn that has started to print a faint,thin  blue/green line from top to bottom about 3 inches in from the entire right edge of every page. I ran the cleaning cycle with no change. Any suggestions on how to correct this?

    I have very similar problem on my 2600n which is printing 2 vertical green lines very close together about 1.5 inches from left edge. All toners are in supply override mode with black toner reading: Estimated Pages Remaining 0
    Color cartridges contain toner with 329 pp remaining according to supply status page.
    Is this problem likely to disappear when toner cartridge(s) are replaced?

  • Printing problem with muliple page 2D graphics.........URGENT

    /*hi
    I want to print the drawings that i create in my painting application.
    Following is the extract from my drawing application, which takes care of the printing part. The problem i am facing is that, i am able to print only one page, the other parts of my drawing are clipped (both from the horizontal as well as vertical direction)
    However i did found some help on printing multiple page TEXT documents, from some literature, but nothing was mentioned about printing drawing that may extend to multiple pages.
    Since printing forms a very important part of any painting application, the whole of my project now relies on the success of the printing code. Its really urgent for me to get out of this problem, any kind of help from anyone would be a great contribution in completing my project */
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.awt.print.*;
    public class Print {
    public static void main(String[] args) {
    PrintFrame f = new PrintFrame();
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.show();
    class PrintFrame extends JFrame implements ActionListener{
    DrawingPanel drawingPanel = new DrawingPanel();
    public PrintFrame() {
    setTitle("Test Printing");
    setBounds(100,100,500,400);
    getContentPane().add(new JScrollPane(drawingPanel), BorderLayout.CENTER);
    JButton printButton = new JButton("Print");
    getContentPane().add(printButton,BorderLayout.SOUTH);
    printButton.addActionListener(this);
    public void actionPerformed(ActionEvent event) {
    PrintUtilities.printComponent(drawingPanel);
    class DrawingPanel extends JPanel {
    private int fontSize = 90;
    private String message = "Java 2D";
    private int messageWidth;
    Dimension pref = new Dimension(1500, 1500);//will define the max scrollable area
    public Dimension getPreferredSize() {
    return pref;
    public DrawingPanel() {
    setBackground(Color.white);
    Font font = new Font("Serif", Font.PLAIN, fontSize);
    setFont(font);
    FontMetrics metrics = getFontMetrics(font);
    messageWidth = metrics.stringWidth(message);
    int width = messageWidth*5/3;
    int height = fontSize*3;
    setPreferredSize(new Dimension(width, height));
    public void paintComponent(Graphics g) {
    super.paintComponent(g);
    Graphics2D g2d = (Graphics2D)g;
    int x = messageWidth/10;
    int y = fontSize*5/2;
    g2d.translate(x, y);
    g2d.setPaint(Color.lightGray);
    AffineTransform origTransform = g2d.getTransform();
    g2d.shear(-0.95, 0);
    g2d.scale(1, 3);
    g2d.drawString(message, 0, 0);
    g2d.setTransform(origTransform);
    g2d.setPaint(Color.black);
    g2d.drawString(message, 0, 0);
    g2d.drawLine(5,5,1490,500);//this line goes outside my paper width, & does not get printed
    class PrintUtilities implements Printable {
    private Component componentToBePrinted;
    public static void printComponent(Component c) {
    new PrintUtilities(c).print();
    public PrintUtilities(Component componentToBePrinted) {
    this.componentToBePrinted = componentToBePrinted;
    public void print() {
    PrinterJob printJob = PrinterJob.getPrinterJob();
    printJob.setPrintable(this);
    if (printJob.printDialog())
    try {
    printJob.print();
    } catch(PrinterException pe) {
    System.out.println("Error printing: " + pe);
    public int print(Graphics g, PageFormat pageFormat, int pageIndex) {
    if (pageIndex > 0) {
    return(NO_SUCH_PAGE);
    } else {
    Graphics2D g2 = (Graphics2D)g;
    g2.translate(pageFormat.getImageableX(), pageFormat.getImageableY());
    disableDoubleBuffering(componentToBePrinted);
    componentToBePrinted.paint(g2);
    enableDoubleBuffering(componentToBePrinted);
    return(PAGE_EXISTS);
    /* disables double buffering globally. */
    public static void disableDoubleBuffering(Component c) {
    RepaintManager currentManager = RepaintManager.currentManager(c);
    currentManager.setDoubleBufferingEnabled(false);
    /* Re-enables double buffering globally. */
    public static void enableDoubleBuffering(Component c) {
    RepaintManager currentManager = RepaintManager.currentManager(c);
    currentManager.setDoubleBufferingEnabled(true);
    }

    Um I dont know if im doing something daft but I tried this like you said
    PrinterJob printJob = PrinterJob.getPrinterJob();
    printJob.setPrintable(this);
    if(printJob.printDialog()){
    try {
              PageFormat pageFormat = printJob.defaultPage();
              if (pageFormat.getOrientation() == PageFormat.PORTRAIT) {
              landscape = 0;} else {
                   landscape = 1;}
              System.out.println("THE ORIENTATION IS "+ landscape);
              printJob.print(); }
    catch (Exception PrinterExeption) { PrinterExeption.printStackTrace();}
    and it doesnt seem to work as I tried it both as landscape and portrait in the print dialog but landscape is always 0.
    cheers
    pmiggy

  • How can I fix a printing problem: message cannot print document: "no pages selected to print" when printing a pdf file.

    I am having problems printing a pdf document. When I select a file to print and try to print it says that "no pages selected to print". The default all pages was selected by me but the message keeps coming up. I recently installed adobe reader version 11. Rebooted the computer but sitll having issues printing docs.
    Jerseyguy

    Hi Pat.
    Yes, both of them lead to the very same error.
    I have a workaround, kind of, where I preview the document and select all the pages that are correct (read showing on the pages preview) as included in the 1st screenshot.
    As you can see in the first screenshot, the 5th page seems to be non-existandt, however as I try to preview it from the 3rdP software, it comes up just fine and from there I can print it individually... just annoying when you have 50 pages and 6 of then are randomly not showing up.
    If I try to print the whole document, it simply gives me the 2nd, 3rd and 4th screenshots.
    As for the 3rdP software, as stated in prior posts, it has been working flawlesly for the last 5 years, and has not been updated in any way, shape of form... As you said, maybe it wouldn't be a bad idea to look into that, however I don't believe the contract for the software maintenance is still in effect...
    Thanks.

  • Print problem after exporting Pages to PDF.

    I am attempting to print a very large genealogical book (300 + pages) of my family's descendants and noticed that in both Preview and Adobe Reader the first character of every page is missing. This does not happen when printing from Pages so it cannot be a printer problem. I checked the placement of the print against the Pages page and both Preview and Adobe Reader are EXACTLY the one character difference with the pages exactly even with each other. The original page type is 12 pt with margins: Left .5in, Right .5in, Top .75in, Bottom .75in, no header, Footer .5in using 9 pt type. What is really odd is that the onscreen display is correct but only the printed (HP OJ6500E702n wireless duplex marginless printer) copy is incorrect which indicates to me the conversion is somehow creating this problem.
    I need this PDF file as it is the file I print from plus I put the file on a disk as a backup for the paper book for all book recipients.
    Sparkgapper

    While this problem is for ANY application that EXPORTS, not prints, to a PDF format, I have discovered that the problem is probably be with the printer's minimum allowable margins being physically the same regardless of portrait or landscape instead of the logical rotation of margin type locations in landscape mode. Question answered by logic research.
    Sparkgapper

  • SL - Pages & Printing problems

    I have upgraded to SL. Since then my business logo doesn't print properly. It has a colored design with some gray scaled lettering surrounding it. When I select it and copy to another application such as : Word - it then has a black background as does Appleworks. (it wasn't created with a black background). - Copy to Preview prints perfectly. Pages where the document was created, prints with all the lettering in blue (supposed to be shades of Gray), and the artwork is not the right shade. It seems like this is more than a printing problem, since coping it to another app. changes its appearance also. Before SL, I could print, and copy to other apps with no problems. Please advise!

    dan ol,
    What kind of printer do you have?
    Just trying to help.
    Andrew

Maybe you are looking for

  • Perplexing compilation errors with latest org.restlet.jar

    When compiling with the latest org.restlet.jar I am get some perplexing error messages. They just don't make sense according to definitions in the source code ContactComponent.java:79: error: method setInternalRouter in class Component can not be app

  • Error trying to configure gateway, no

    Running Siebel gateway configuration. Redhat Linux 86-64, Oracle db 11g R2. Upon adding all responses in the gui to perform the config, the following error: +"Siebel configuration wizard failed with error. Please see the log files for details."+ I am

  • Camera Raw isn't working.

    Hi there, I just got my harddrive back from being recovered, which was a major bummer, so I had to reinstall all of my programs. I have CS4, reinstalled it, photoshop and bridge work fine, but when I went to open my RAW files I kept getting a message

  • Opening Dashboard Causes additional blank Google windows to open - help?

    All of a sudden in the past week, every time I click to open my Dashboard (I use right/upper bar on a 4-bar Kensington track ball to call up Dashboard) several additional Safari windows open up on my desktop with the following complicated "Google-rel

  • Iphoto doesn't recognize my mobile me password and I know it is correct

    I can log into Me.com using my mobile me password. But, when I try to set up my iphoto with mobile me it says the password and username don't match up. Makes no sense.