Printing multi pages in Illustrator

Hi,
Is it Possable to creat a Script that will print multiple pages from illustator but it ask you what Paper size you want e.g. A4 or A3 i know it is possible to make one and it ask how many pages you want. but i unfortunatly can't make it change page size.
Thanks
Anwen

Hi Anwen,
By "multiple pages" do you mean multiple copies of the same file or multiple files (each containing a single page, of course)?
At any rate, both are possible. Contact me per e-mail (you can find the address by clicking on my name) for more details.

Similar Messages

  • Printing multi-page documents

    I have a 25-page .psd document that I want to print in CS6 in one hit, but I only seem able to print it by opening each page individually and processing it separately. What can this be done?

    Photoshop for whatever reason does not print multi-page documents as you would see in PDFs. Acrobat does not accept psd files for conversion into PDFs,
    So I nicked the following from here: How do I create multi-page PDFs from PSDs on Photoshop CS5? - Quora
    Its not a one step process but kind of a workaround really -
    STEP1 Export all your files as JPEG or PNG.
    If there are lot of files you can do it in one go using File > Scripts > Load Files into Stack then create a new PSD with all the files you want exported. Then go File > Scripts > Export Layers to Files and export it as one of the above image formats
    STEP 2 As mac user - Go to the folder where all the above files are exported and Cmd Open it all together in "Preview" application, then click Print, but instead of printing save as PDF. There is an option to save as PDF in the popup you get before printing. So JOB DONE
    As a PC user - I am not 100% if they have inbuilt utility of saving as PDF while printing but I remember I used a third party software (which was free) I think it was called bullzip PDF print or something like that. And then you can do the same in Windows as well like mac. You can either load all your JPEG or PNG files in windows image viewer or I think Word should definitely work. Like you will need to copy all your images in there and then "Save as PDF"

  • I am having trouble printing multi-page documents on my Epson printer. 13" Macbook Pro, Adobe InDesign, Epson WF-7520

    I have a multi-page document and I want to print some of the pages, double-sided, to check my work. I can't seem to get the interface to recognise that I want to print a specific range of pages, so it will print just one page [no double-sided] or, I assume, it will print the WHOLE LOT [not good at this stage!] HEEEELLLLPPP!! 
    To explain, the dialogue box which opens when you hit Command+P has an option of 'Pages' or 'Range' but 'Range' gives you only two options:  All Pages or A4V. If I click the 'Printer' button I get another dialogue box with more options and from there I can choose to print 'All' or 'Pages' . . . and you change 1 to 1 to say, 1 to 3 for example. There is also an option to print double-sided. But nothing seems to be working and as soon as you finish with this second dialogue box it seems to forget every parameter you choose there. The summary page on the first dialogue box also seems suspiciously sketchy on details of what, exactly, it is about to print. By the way I have installed the latest driver set from Apple for this printer. Is anyone else having the same problem?

    Thank you so much Eric. I did what you said. I still had the same result, but finally [somehow] I ended up clicking on something which doesn't even look clickable - this is a tiny set of back- and forward arrows in the 'Range' option. Using this feature seems pretty hit-and-miss but I persevered and was able to get it to accept my parameters, i.e. "1 - 2" in range. You have to go into the second ["Printer"] dialogue box each and every time you print, to enable two-sided printing. At last I was able to get it to print pages 1 and 2 of my three-page document. Now maybe I can test-print pages from my 108 page tome! Fingers crossed . . .   

  • My Officejet Pro 8000 wireless printer prints to only 4x5" on 8x11 sheet when printing mult pages

    My Officejet Pro 8000 wireless prints to only 4x5 inches on the 8x11 sheet when I try to print multiple pages per sheet from an Adobe file.  The print preview shows the paper dimensions to be 8x11, and the four Adobe pages are properly scaled to fill the 8x11 printed sheet, yet when printing, all the printing is condensed to the upper left quarter of the sheet.

    What did it? I was still trying to figure it out

  • Can't print multi-pages; NT & NTR

    I had this problem with my old PLW NT, and now I have it with a PLW NTR. The problem is that I cannot usually print documents of more than one page from the cassette tray. When I order the printer to print such a document, the printer prints one page (or, occasionally with the NTR, a second page) and then stalls. To get the printer to work again, I have to turn it off and restart it.
    To avoid the problem, I either have to load all the blank papers through the manual feed tray or print my documents one page at a time. Both techniques are inconvenient and time-consuming.
    In addition, the NTR is showing--only occasionally--a new problem. That is that sometimes when I order it to print a page--through either the cassette or the manual feed tray--the printer runs one page through blank and then prints on the second page. That throws off my organization.
    Any ideas, anyone, for remedies? TIA

    It's a kit: it contains six replacement ROM ICs: the Apple part numbers are 341-0950, 341-0951, 341-0952, 341-0953, 341-0954 & 341-0955. Please tell me if you find a vendor selling it as I have a Personal LaserWriter NTR with Revision 2.0 ROMs that is also in need of a ROM upgrade. If your printer has Revision 2.0 ROMs it's impossible to upgrade it since the ROMs are soldered onto the IO Board.
    Only Revision 1.0 & Revision 3.0 IO Boards have the socketed ROMs. You might also need to replace the scanner motor too if you ever get a Error 57 displayed on your Macintosh while attempting to print a document. Error 57 is related to the scanner motor not spinning up to the right speed & means it needs to be replaced.

  • Printing multi page document

    Hi all
    I have been struggling with the printing in batch for an application I wrote.
    The program renders SVGDocuments (Batik) and after I render 1, I send it to the printer. So far so good. In batch this means that it looks like this:
    * render
    - print
    * render
    - print
    But the problem is that between the rendering and printing, someone else can send a document to the printer and this document will be somewhere between
    the papers of the application.
    So what I would like to have is that I can send only one printer job that includes all the pages.
    I tried it with the java.awt.Book object and I can see 17 pages, but only the first one is printed. Here is the code:
    Book book = new Book();
    PageFormat documentPageFormat = new PageFormat();
    documentPageFormat.setOrientation(PageFormat.LANDSCAPE);
    for (PrintTranscoder printTranscoder : printSVGService.getPrintTranscoders()) {
    book.append(printTranscoder, documentPageFormat);
    PrinterJob printJob = PrinterJob.getPrinterJob();
    try {
    printJob.setPageable(book);
    printJob.print();
    } catch (PrinterException e) {
    e.printStackTrace();
    Can someone tell me why only the first page is printed? Because when I debug the "book" object holds 17 documents. But only the first one is printed.
    Thanks
    Xnni

    I am having the same problem. I am not able to print my number documents on a PC, my multipage Number documents are shrunk to one page when trying to print as a PDF. Any help would be greatly appreciated.

  • Printing Multi Page PDF Document exported from iPad

    I e-mailed a PDF file from my iPad using the Numbers e-mail feature. I was sending it to my office (PC dominated!) to be entered. When she opened the attachment it looked fine, but, when she went to print it, this 6 page document tried to print on one page. I had page breaks inserted, and it did print on my Mac, but, it didn't print on her PC and it didn't print on my PC Laptop. I couldn't adjust any print parameters to have it print on more than one page, so, as it stands, the iPad is a totally useless tool for me. Anyone have any ideas?

    I am having the same problem. I am not able to print my number documents on a PC, my multipage Number documents are shrunk to one page when trying to print as a PDF. Any help would be greatly appreciated.

  • Print Multi-page TIff images

    Hi,
    I have multipage tiff images. I am loading the image in the jScrollPane. I also have NEXT Button which
    show the next image of the tiff file in the JscrollPane. Right now i have a PRINT button which prints the
    image that's in the jscrollpane. I want to do something which prints the all the images in that tiff file.
    Instead of the image that's in the jScrollpane. If you need the code please let me know.
    Any help is always appreciated.
    Thanks.

    can send me the code so that I will see...
    thanks
    kumar
    [email protected]

  • Acrobat Pro 9.0 printing to Canon ImageRunner 3220 prints only first page of multi-page documents?

    We just got the new CS4 and with the Acrobat Pro 9.0 install, we cannot seem to print multi-page documents.  Only the first page comes through, and the queue clears as though the document's been fully printed.
    We are running Windows XP Pro SP3, and the printer is the Canon ImageRunner irC3220.
    I do not want to use the "Print as Image" option, as I don't want to rasterize the file before sending it to the printer. It's an important document and it's imperative that it is printed at high quality.
    We had no problems printing with Acrobat 8.
    I've seen old posts regarding this issue, but couldn't find anything newer that might have had an updated solution.
    Thank you in advance!! any help would be sooo appreciated right now!

    Great! Many thanks
    Is there actually a kind of marketplace for Javascipts for Adobe Acrobat Pro somewhere? ...
    Really useful!

  • How to do batch printing of multi-page TIFF images

    I have TIFF images stored in the database as BLOB. The TIFF images can have one or multiple pages. I need to do batch printing of these images using Oracle Web Reports 6i in a 3-tier web environment. I was able to print single-page TIFF image by using an "Image" datatype; however when I print multi-page TIFF image, only the first page is printed.
    Is there a way to achieve my requirement in Oracle Web Reports 6i. If not, can you please suggest any alternative method. Our environment is 9iAS Release 1 on Windows/2000, Oracle 8.1.7 db,Forms 6i and Reports 6i.
    Thank you.

    Did you ever find a solution to this issue? I'm currently fighting this same issue. Only the first page of my multi-page TIFF documents are printing.

  • Multi-Page Printing (Please I need realy help)

    Dear Friend !
    Please Help me. My Dateline is running out quickly.
    I have a problem, I could not Print multi-page text document which are directly retrive from MS Access DataBase.
    I send by code for your easy understanding. Please, I realy need help.
    It prints multi-page but prints dublicate the first page.
    For multi-page print, look at Bolded Text in the Last Part of the code.
    Thank u very much.
    import java.awt.*;
    import java.awt.font.*;
    import java.awt.geom.*;
    import java.awt.print.*;
    import java.sql.*;
    import java.util.*;
    import java.text.DecimalFormat;
    import javax.swing.*;
    import java.text.SimpleDateFormat;
    public class printBalance{
    int maxPage=1;
    int pHight=0;
    int header=0;
    FontMetrics fontMet2;
    private final static int POINTS_PER_INCH=15;
    Paper paper=new Paper();
    //paper.setSize(612,792);
    public printBalance () {
    //--- Create a new PrinterJob object
    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 ();
    paper.setImageableArea(15,15,580,648);
    documentPageFormat.setPaper(paper);
    documentPageFormat.setOrientation (PageFormat.PORTRAIT);
    book.append (new Document (), documentPageFormat);
    //--- Add a third page using the same painter
    book.append (new Document (), documentPageFormat);
    //--- Tell the printJob to use the Book as the Pageable object
    printJob.setPageable (book);
    //--- Show the print dialog box. If the user clicks the
    //--- print button, we then proceed to print, else we cancel
    //--- the process.
    if (printJob.printDialog()) {
    try {
    printJob.print();
    } catch (Exception PrintException) {
    PrintException.printStackTrace();
    private class Document implements Printable {
    public int print (Graphics g, PageFormat pageFormat, int page) {
    //--- Create the Graphics2D object
    Graphics2D g2d = (Graphics2D) g;
    //--- Translate the origin to 0,0 for the top left corner
    g2d.translate (pageFormat.getImageableX (), pageFormat.getImageableY ());
    //--- Set the drawing color to black
    g2d.setPaint (Color.black);
    //--- Print the title
    DataLink dbTitle=new DataLink();
    ResultSet rsTitle;
    String TitleQuery="Select Com_ID,Com_Name,Com_Road,Com_House,Com_Add,Com_City from Company_Profile where Com_ID='001'";
    Vector tempAdd=new Vector();
    //--- Compute the horizontal center of the page
    FontMetrics fontMetrics = g2d.getFontMetrics ();
    try{
                   rsTitle=dbTitle.stmt.executeQuery(TitleQuery);
                   rsTitle.next();
    String titleName=rsTitle.getString(2);
    tempAdd.addElement(rsTitle.getString(3));
    tempAdd.addElement(rsTitle.getString(4));
    tempAdd.addElement(rsTitle.getString(5));
    tempAdd.addElement(rsTitle.getString(6));
    String titleAdd=(tempAdd).toString();
    Font titleFont2 = new Font ("helvetica", Font.PLAIN, 13);
    //titleFont2.getFont(titleName);
    g2d.setFont (titleFont2);
    //--- Compute the horizontal center of the page
    //--- Compute the horizontal center of the page
    double titleX = (pageFormat.getImageableWidth () / 2) - (fontMetrics.stringWidth (titleName) / 2);
    //System.out.println(titleName);
    double titleY =POINTS_PER_INCH;
    g2d.drawString (titleName, (int) titleX, (int) titleY);
              double titleX3 = (pageFormat.getImageableWidth () / 2) - (fontMetrics.stringWidth (titleAdd) / 2);
              //System.out.println(titleAdd);
              double titleY3 =POINTS_PER_INCH+fontMetrics.getHeight();
    g2d.drawString (titleAdd, (int) titleX3, (int) titleY3);
    catch(SQLException ex){System.out.println(ex);}
    DataLink dbDate=new DataLink();
    ResultSet rsDate;
    String Qr="Select * from TimeSchedule where Com_ID='001'";
    Vector tempDate=new Vector();
    SimpleDateFormat dateformat = new SimpleDateFormat("MMMMMMMM. dd, yyyy",Locale.getDefault());
    FontMetrics fontMet = g2d.getFontMetrics ();
    try{
                   rsDate=dbDate.stmt.executeQuery(Qr);
                   rsDate.next();
    tempDate.addElement("BALANCE SHEET AS AT ");
    tempDate.addElement(String.valueOf(dateformat.format(rsDate.getDate(2))));
    String BalanceDate=(tempDate).toString();
    Font titleFont2 = new Font ("helvetica", Font.PLAIN, 13);
    //titleFont2.getFont(titleName);
    g2d.setFont (titleFont2);
    //--- Compute the horizontal center of the page
    //--- Compute the horizontal center of the page
    double DateX = (pageFormat.getImageableWidth () / 2) - (fontMet.stringWidth (BalanceDate) / 2);
    //System.out.println(BalanceDate);
    double DateY =POINTS_PER_INCH+POINTS_PER_INCH+fontMet.getHeight();
    g2d.drawString (BalanceDate, (int) DateX, (int) DateY);
    catch(SQLException ex){System.out.println(ex);}
    Rectangle2D.Double borderHead = new Rectangle2D.Double (0,
    fontMetrics.getHeight()+fontMetrics.getHeight()+fontMet.getHeight()*2,
    pageFormat.getImageableWidth (),
    fontMet.getHeight());
    Font font=new Font("Arial",Font.PLAIN,12);
    g2d.setFont (font);
    g2d.drawString("CAPITAL & LIABILITIES",POINTS_PER_INCH,fontMetrics.getHeight()*5);
    g2d.drawLine(POINTS_PER_INCH*14,(fontMetrics.getHeight()*4)+4,POINTS_PER_INCH*14,fontMetrics.getHeight()*5);
    g2d.drawString("AMOUNT",POINTS_PER_INCH*14+12,fontMetrics.getHeight()*5);
    g2d.drawString("PROPERTY & ASSETS",POINTS_PER_INCH*20,fontMetrics.getHeight()*5);
    g2d.drawLine(POINTS_PER_INCH*33,(fontMetrics.getHeight()*4)+4,POINTS_PER_INCH*33,fontMetrics.getHeight()*5);
    g2d.drawString("AMOUNT",POINTS_PER_INCH*34,fontMetrics.getHeight()*5);
    //--- Draw a border around the page using a 12 point border
    //g2d.setStroke (new BasicStroke (12));
    Rectangle2D.Double border = new Rectangle2D.Double (0,
    fontMetrics.getHeight()+fontMetrics.getHeight()+fontMet.getHeight()+fontMet.getHeight()*2,
    pageFormat.getImageableWidth (),
    pageFormat.getImageableHeight ());
    g2d.draw (borderHead);
    g2d.draw (border);
    /*Line2D.Double line = new Line2D.Double ();
    int j=(int)pageFormat.getImageableWidth()/2;
    line.setLine (j,0,j,pageFormat.getHeight());
    g2d.draw (line);*/
    int j=(int)pageFormat.getImageableWidth()/2;
    g2d.drawLine(j,fontMetrics.getHeight()+fontMetrics.getHeight()+fontMet.getHeight()*2,j,(int)pageFormat.getHeight());
    Vector temp=new Vector();
    //--- Print page 1
    if( page >= maxPage )
                   return NO_SUCH_PAGE;
    //if (page == 0) {
    DataLink db=new DataLink();
    DataLink db2=new DataLink();
    DataLink dbMinus=new DataLink();
              ResultSet rs;
              ResultSet rs1;
              DataLink dbMinus2=new DataLink();
              ResultSet rsSub;
    String Qry="SELECT Account_Name, Com_ID FROM Authorised_Capital Where Com_ID='001' GROUP BY Account_Name,Com_ID";
    //System.out.println(Qry);
    String getAccount="";
    String getDes="";
    double getAmount=0;
    String Amount="";
    DecimalFormat df=new DecimalFormat("###,###");
    int GrandTotal=0;
    int sum=0;
    int sum2=0;
    String val="";
    int k=0;
    int i=0;
    int U=0;
    int W=0;
    int J=0;
    int Z=0;
                   String ab = " ";
                   String FPart="";
                   String LPart="";
                   String strt="";
    String SubValu="";
                   try{
                   rs=db.stmt.executeQuery(Qry);
                   i=0+fontMetrics.getHeight()+fontMetrics.getHeight()+fontMet.getHeight()+fontMet.getHeight()*2;
                   while(rs.next())//where 1
    getAccount=rs.getString(1);
    //font//helvetica
    fontMet2 = g2d.getFontMetrics ();
    Font titleFont = new Font ("Arial", Font.PLAIN,10);
    g2d.setFont (titleFont);
    System.out.println("Font titleFont = new Font Arial, Font.PLAIN,10) =="+fontMet2.getHeight());
                   //--- Print the text one inch from the top and left margins
                        g2d.drawString (getAccount, POINTS_PER_INCH, POINTS_PER_INCH+i);
                        g2d.drawLine (POINTS_PER_INCH,POINTS_PER_INCH+i+10,POINTS_PER_INCH+140, POINTS_PER_INCH+10+i);
    String Qry2="SELECT Account_Name,Des,Amount,Formula FROM Authorised_Capital where Account_Name='"+getAccount+"' And Com_ID='001' And Formula='PLUS'";
    String Qry_Minus="SELECT Account_Name,Des,Amount,Formula FROM Authorised_Capital where Account_Name='"+getAccount+"' And Com_ID='001' And Formula='MINUS'";
    // Plus Row Count
    ResultSet count;
    count=db2.stmt.executeQuery(Qry2);
    int Cun=0;
    while(count.next())
    Cun =Cun+1;
    //Minus Row Count
    ResultSet Rs_Minus;
    Rs_Minus=dbMinus.stmt.executeQuery(Qry_Minus);
    int Minus_Count=0;
    while(Rs_Minus.next())
    Minus_Count =Minus_Count+1;
    //System.out.println(Minus_Count);
    rs1=db2.stmt.executeQuery(Qry2);
    k=i+20;
    sum=0;
    while(rs1.next())
    if(Cun>1){// multipule row
    getDes=rs1.getString(2);
    int ln= getDes.length();
    if(ln>19){
    boolean tr=false;
    ab = " ";
    FPart="";
    LPart="";
    strt=getDes.substring(19);
              int length=strt.length();
    //System.out.println("Length="+length);
                        for(int st=0; st<length; st++)
                        char ch=strt.charAt(st);
                        String vlu=String.valueOf(ch);
                        //System.out.println(vlu);
                        if(ab.compareToIgnoreCase(vlu)==0)
    tr=true;
                                  int Final=strt.indexOf(vlu);
                                  FPart=getDes.substring(0,19+Final);
                                  LPart=strt.substring(Final+1);
                                  g2d.drawString (FPart, POINTS_PER_INCH, POINTS_PER_INCH+k);
                                  k=k+10;
    g2d.drawString (LPart, POINTS_PER_INCH, POINTS_PER_INCH+k);
    break;
    }//end for
    if(tr==false)
    g2d.drawString (getDes, POINTS_PER_INCH, POINTS_PER_INCH+k);
                             }//end ln (if)
                        else {
                             g2d.drawString (getDes, POINTS_PER_INCH, POINTS_PER_INCH+k);
    String valComa=String.valueOf(df.format(Double.parseDouble(rs1.getString(3))));
    val=rs1.getString(3);
    Amount=val;
    int getAount=Integer.parseInt(Amount);
                        int len=valComa.length();
                        int B;
                        U=0;
                        for(B=len;B>0;B--)
    char num=valComa.charAt(B-1);
                        g2d.drawString (String.valueOf(num), POINTS_PER_INCH+170-U, POINTS_PER_INCH+k);
                        U =U+5;
    sum =sum+getAount;
    k =k+10;
                        }//end if // multipule row
                        else {
              getDes=rs1.getString(2);
    ab = " ";
    FPart="";
    LPart="";
    strt=getDes.substring(19);
              int length=strt.length();
    //System.out.println("Length="+length);
                        for(int st=0; st<length; st++)
                        char ch=strt.charAt(st);
                        String vlu=String.valueOf(ch);
                        if(ab.compareToIgnoreCase(vlu)==0)
                                  int Final=strt.indexOf(vlu);
                                  FPart=getDes.substring(0,19+Final);
                                  LPart=strt.substring(Final+1);
                                  //System.out.println(FPart+"\n"+LPart);
    g2d.drawString (FPart, POINTS_PER_INCH, POINTS_PER_INCH+k);
    k=k+10;
    g2d.drawString (LPart, POINTS_PER_INCH, POINTS_PER_INCH+k);
    //Only for Grand Total
    int Gnd=Integer.parseInt(rs1.getString(3));
    GrandTotal=GrandTotal+Gnd;
                        System.out.println(GrandTotal);
    val=String.valueOf(df.format(Double.parseDouble(rs1.getString(3))));
                        int len=val.length();
                        int C;
                        int D=0;
                        for(C=len;C>0;C--)
    char num=val.charAt(C-1);
                        g2d.drawString (String.valueOf(num), POINTS_PER_INCH+250-D, POINTS_PER_INCH+k);// Total
                        D =D+5;
    k =k+10; }//end else*/
                        }//end Where
                        // Calculate Total
                        if(Minus_Count>=1) //if 1
    if(!(sum==0.0)) //if 2
    String valComa=String.valueOf(df.format(sum));
                        int len=valComa.length();
                        int y;
                        int P=0;
                        W=10;
                        W=W+k;
                        for(y=len;y>0;y--)
    char num=valComa.charAt(y-1);
                        g2d.drawLine (POINTS_PER_INCH+80, POINTS_PER_INCH+k,200,POINTS_PER_INCH+k);
                        g2d.drawString (String.valueOf(num), POINTS_PER_INCH+170-P, POINTS_PER_INCH+W);
                        P =P+5;
                        }//end for
                   }//end if 2
                   rsSub=dbMinus2.stmt.executeQuery(Qry_Minus);
    int X=20;
    X=X+W;
    while(rsSub.next()) //while ##
    if(Minus_Count>1){//// for multipul line
    getDes=rsSub.getString(2);
    // System.out.println(getDes);
    int ln= getDes.length();
    if(ln>19){// for line is geter than 19
    boolean tr=false;
    ab = " ";
    FPart="";
    LPart="";
    strt=getDes.substring(19);
              int length=strt.length();
    X=X+10;
                        for(int st=0; st<length; st++)
                        char ch=strt.charAt(st);
                        String vlu=String.valueOf(ch);
                        //System.out.println(vlu);
                        if(ab.compareToIgnoreCase(vlu)==0)
    tr=true;
                                  int Final=strt.indexOf(vlu);
                                  FPart=getDes.substring(0,19+Final);
                                  LPart=strt.substring(Final+1);
                                  g2d.drawString (FPart, POINTS_PER_INCH, POINTS_PER_INCH+X);
                                  X=X+10;
    g2d.drawString (LPart, POINTS_PER_INCH, POINTS_PER_INCH+X);
    //X=X+10;
    break;
    }//end for
    if(tr==false)
    g2d.drawString (getDes, POINTS_PER_INCH, POINTS_PER_INCH+X);
                             }//end ln (if) // for line is geter than 19
                        else {
                             getDes=rsSub.getString(2);
                             int ln2= getDes.length();
                             /*if(ln2>19){
                             boolean tr=false;
                             ab = " ";
                             FPart="";
                             LPart="";
                             strt=getDes.substring(19);
                             int length=strt.length();
                             X=X+10;
                             for(int st=0; st<length; st++)
                             char ch=strt.charAt(st);
                        String vlu=String.valueOf(ch);
                        if(ab.compareToIgnoreCase(vlu)==0)
    tr=true;
                                  int Final=strt.indexOf(vlu);
                                  FPart=getDes.substring(0,19+Final);
                                  System.out.println("First part= "+Final);
                                  LPart=strt.substring(Final+1);
                                  System.out.println("Last part= "+LPart);
                                  g2d.drawString (FPart, POINTS_PER_INCH, POINTS_PER_INCH+X);
                                  X=X+10;
    g2d.drawString (LPart, POINTS_PER_INCH, POINTS_PER_INCH+X);
    //X=X+10;
    break;
    }//end for
    if(tr==false)
    g2d.drawString (getDes, POINTS_PER_INCH, POINTS_PER_INCH+X);
                        System.out.println("Plane line= ");
                             }//end ln (if)*/
                             g2d.drawString (getDes, POINTS_PER_INCH, POINTS_PER_INCH+X);
                             }//end else
    String valComa=String.valueOf(df.format(Double.parseDouble(rsSub.getString(3))));
    val=rsSub.getString(3);
    Amount=val;
    int getAount=Integer.parseInt(Amount);
                        int len=valComa.length();
                        int B;
                        U=0;
                        for(B=len;B>0;B--)
    char num=valComa.charAt(B-1);
                        g2d.drawString (String.valueOf(num), POINTS_PER_INCH+170-U, POINTS_PER_INCH+X);
                        U =U+5;
    sum2 =sum2+getAount;
    }//end if //for multipul line
    else {
    SubValu=rsSub.getString(2);
    int ln= SubValu.length();
              if(ln>19){// for line is geter than 19
              boolean tr=false;
              ab = " ";
              FPart="";
              LPart="";
              strt=SubValu.substring(19);
              int length=strt.length();
              X=X+10;
              for(int st=0; st<length; st++)
              char ch=strt.charAt(st);
              String vlu=String.valueOf(ch);
              //System.out.println(vlu);
              if(ab.compareToIgnoreCase(vlu)==0)
                             tr=true;
                        int Final=strt.indexOf(vlu);
                        FPart=SubValu.substring(0,19+Final);
                        LPart=strt.substring(Final+1);
                        g2d.drawString (FPart, POINTS_PER_INCH, POINTS_PER_INCH+X);
                        X=X+10;
                             g2d.drawString (LPart, POINTS_PER_INCH, POINTS_PER_INCH+X);
                             //X=X+10;
                             break;
                   }//end for
                   if(tr==false)
                   g2d.drawString (SubValu, POINTS_PER_INCH, POINTS_PER_INCH+X);
                   }//end ln (if) // for line is geter than 19
    else{
    //SubValu=rsSub.getString(2);
                        g2d.drawString (String.valueOf(SubValu), POINTS_PER_INCH, POINTS_PER_INCH+X);
    String valComa=String.valueOf(df.format(Double.parseDouble(rsSub.getString(3))));
    SubValu=rsSub.getString(3);
    int LessAount=Integer.parseInt(SubValu);
                        int Sublen=valComa.length();
                        int B;
                        int G=0;
                        for(B=Sublen;B>0;B--)
    char SubNum=valComa.charAt(B-1);
                        g2d.drawString (String.valueOf(SubNum), POINTS_PER_INCH+170-G, POINTS_PER_INCH+X);
                        G =G+5;
    int Actual_Value=sum-LessAount;
    String valCom=String.valueOf(df.format(Actual_Value));
                        int Lesslen=valCom.length();
                        int T;
                        int Q=0;
                        for(T=Lesslen;T>0;T--)
    char LessNum=valCom.charAt(T-1);
                        g2d.drawString (String.valueOf(LessNum), POINTS_PER_INCH+250-Q, POINTS_PER_INCH+X+10);
                        Q =Q+5;
                        k =X+20;
                   //}//end else
    }//end else*/
                        }//while ##
    if(Minus_Count>1){
    if(!(sum2==0.0)) //if 2
                   //System.out.println("Khaled");
    String valCom=String.valueOf(df.format(sum2));
                        int lent=valCom.length();
                        int y;
                        int P=0;
                   Z=10;
                        //System.out.println(X);
                        Z=Z+X;
                        //System.out.println("X="+X);
                        for(y=lent;y>0;y--)
    char num=valCom.charAt(y-1);
                        g2d.drawLine (POINTS_PER_INCH+80, POINTS_PER_INCH+Z,200,POINTS_PER_INCH+Z);
                        g2d.drawString (String.valueOf(num), POINTS_PER_INCH+170-P, POINTS_PER_INCH+Z+10);
                        P =P+5;
                        }//end for
                   k =Z+20;
                   }//end if 2
                        // }//end if(Minus_Count>1)
                        int FinalValue=sum-sum2;
                        //System.out.println("FinalValue="+FinalValue);
                        String valCom=String.valueOf(df.format(FinalValue));
                        int lent=valCom.length();
                        int y;
                        int P=0;
                   //Z=10;
                        //System.out.println(X);
                        //Z=Z+X;
                        for(y=lent;y>0;y--)
    char num=valCom.charAt(y-1);
                        g2d.drawString (String.valueOf(num), POINTS_PER_INCH+250-P, POINTS_PER_INCH+Z+10);
                        P =P+5;
                        }//end for
    }//if(Minus_Count>1)
                             }//end if 1
                   else{
                        //i =i+20+k;
    if(!(sum==0.0)) //if 2
    String valComa=String.valueOf(df.format(sum));
                        int len=valComa.length();
                        int y;
                        int z=0;
                        for(y=len;y>0;y--)
    char num=valComa.charAt(y-1);
                        g2d.drawString (String.valueOf(num), POINTS_PER_INCH+250-z, POINTS_PER_INCH+k);// Total
                        z =z+5;
                        }//end for
                   }//end if 2
                   }//end else*/
    i=k+30;
              }//end where 1
                   catch(SQLException ex)
                        System.out.println(ex);
    // For Grand Total
    String valComa=String.valueOf(df.format(GrandTotal));
                   int len=valComa.length();
                   int y;
                   int z=0;
    int h=0;
    h=k+40;
                   for(y=len;y>0;y--)
                   char num=valComa.charAt(y-1);
                   g2d.drawLine (POINTS_PER_INCH+255, POINTS_PER_INCH+h-10,POINTS_PER_INCH+250-z,POINTS_PER_INCH+h-10);
                   g2d.drawString (String.valueOf(num), POINTS_PER_INCH+250-z, POINTS_PER_INCH+h);// Total
                   z =z+5;
                   System.out.println(valComa);
                   }//end for
    /* String RowCount="SELECT * FROM Authorised_Capital where Com_ID='001'";
    DataLink dbCount=new DataLink();
    int RowCun=0;
    ResultSet roCount;
    try{
                        roCount=dbCount.stmt.executeQuery(RowCount);
                        while(roCount.next())
                        RowCun =RowCun+1;
                   catch(SQLException ep){}*/
    int header =fontMetrics.getHeight()*5;
    System.out.println("Header ="+header);
    int H=fontMet2.getHeight();
    int row=H + fontMet2.getDescent();
    System.out.println("Page row= "+row);
    pHight=(int)pageFormat.getImageableHeight();
    System.out.println("Page Height= "+pHight);
    int rowPerPage = (pHight-header)/row;
    System.out.println("Row per page= "+rowPerPage);
    double rowN = h-header;
    double rowNumber = rowN/row;
    System.out.println("Row Numbe= "+rowNumber);
    maxPage = Math.max( (int)Math.ceil(rowNumber/(double)rowPerPage), 1);
    System.out.println("maxPage ="+maxPage);
    return (PAGE_EXISTS);
    //--- Print page 2
    /*else if (page == 2) {
    //--- Print the text one inch from the top and left margins
    g2d.drawString ("This the content of the second page: " + page, POINTS_PER_INCH, POINTS_PER_INCH);
    return (PAGE_EXISTS);
    //--- Validate the page
    //return (NO_SUCH_PAGE);
    }// end public int print (Graphics g, PageFormat pageFormat, int page)
    Message was edited by:
    khaled200
    Message was edited by:
    khaled200

    I implemented an example here.
    http://java-sl.com/Pagination_In_JEditorPane_Print.html
    Regards,
    Stas

  • Canon MF8580Cdw prints multi- documents as 2 sided only, not 1-sided.

    Canon MF8580Cdw prints multi-page documents as 2-sided only. Cannot print 1-sided. Have checked all settings and they are set to 2-sided OFF.

    Hi!
    To ensure the most accurate information is provided, we will need to know the version of Windows or Mac in use.
    If this is a time-sensitive matter, our US-based technical support team is standing by, ready to help 24/7 via Email at http://bit.ly/EmailCanon or by phone at 1-800-OK-CANON (1-800-652-2666) weekdays between 10 AM and 10 PM ET (7 AM to 7 PM PT).
    Thanks and have a great day!

  • Creating Multi-Page PDF from a Layerd Illustrator file (script)

    Often times when designing a logo I create different versions and variable options on layers. This can result in several layers in one Illustrator file. Is there an easy way or an existing script that will allow me to (with one click) create a multi-page PDF consisting of all the layers within my .ai file? The current method is turning on each layer, performing a save-as (PDF), then turning off said layer and turning on the next layer and repeating the task and so-on-and-so-forth, etc … It becomes tedious and quite often I save over the previous version, forgetting to re-name it or forget to perform a save on a certain layer. Can anyone help with some advice? I have never written my own script before but am not opposed to trying, where do I begin?
    Any help is appreciated.

    You don't say what OS you are using and which scripting language you are thinking of doing this in…
    This is a sample that may get you started done in JavaScript so it's platform independent with the exception of my 'mac style' file paths.
    If your on a PC it may just be a typo to set to C drive or whatever you call them things…
    If you are on the mac OS then it should just dump a load of PDF's on your desktop.
    You say about a multi-page PDF but don't think Illustrator can do this unless its been added with multi-artboards in CS4?
    Others would have to let you know that…
    #target illustrator
    var docRef = app.activeDocument;
    with (docRef) {
    var docName = baseName(name)
    var pdfOptions = new PDFSaveOptions();
    pdfOptions.pDFPreset = '[High Quality Print]';
    // Turn all layers off
    for (var i = 0; i < layers.length; i++) {
    layers[i].visible = false;
    // Turn each layer on
    for (var i = 0; i < layers.length; i++) {
    if (i == 0) {
    layers[i].visible = true;
    redraw();
    var layerName = layers[i].name;
    var saveAsPath = new File('~/Desktop/' + docName + '_' + layerName + '.pdf')
    saveAs(saveAsPath, pdfOptions);
    } else {
    layers[i-1].visible = false;
    layers[i].visible = true;
    redraw();
    var layerName = layers[i].name;
    var saveAsPath = new File('~/Desktop/' + docName + '_' + layerName + '.pdf')
    saveAs(saveAsPath, pdfOptions);
    //close(SaveOptions.DONOTSAVECHANGES);
    function baseName(fileName) {
    var nameString = '';
    var extOffset = fileName.lastIndexOf('.');
    if (extOffset == -1) {
    nameString = fileName;
    } else {
    nameString = fileName.substr(0, extOffset);
    return nameString;

  • Use Illustrator for multi-page document?

    I'm usually in the FrameMaker and, to some extent, InDesign areas, but a potential client asked me to work on a document for them.
    They are doing a quick reference guide (I would assume either a single sheet folded into six panels, or several sheets folded and stapled into a booklet), and are planning to do it in Illustrator.
    I've done these before in InDesign, but wanted to know if there is some capacity in Illustrator for doing the document there, for either of the formats mentioned above.
    Any guidance would be appreciated. Thanks!

    Jagged:
    Yes!
    For that you use the artboard feature in Illustrator. When you create a new document, specify the number of artboards (aka pages) you need, and the amount of space between, etc. Once you have your document set up, zoom out and you'll see all the artboards laid out in the grid you specified. If you don't see them, make sure "show artboards" is checked in the view menu.
    You won't be able to create a master page like you can in InDe, but you can paste in the same place on all the artboards--I believe the command (mac) is command+shift+option+V. You cut the original item (command+x) and then paste in place on all pages.
    Interesting tidbits:
    If you open the artboard palette, you can name the artboards. When you export, say to outlined EPS, you can choose to "use artboards" and you'll get a separate eps file for each artboard WITH THE NAME from the artboard palette, plus a file with all the artboards together. Saving as PDF makes a multi-page PDF as you would expect. You can choose to output just one artboard.
    Also, with the artboard palette open, you can double-click on an artboard name and Illustrator will jump to that artboard at full screen size. Quite handy when you have a lot of artboards.
    You can change the layout of your artboards by clicking in the upper right corner of the artboard palette and choosing rearrange artboards (or something close to that). Make sure everything is unlocked, otherwise they won't move with the re-jigger.
    And finally, you can change the size of an artboard by using the artboard tool from the tool palette or by double-clicking on the artboard's icon in the palette, which will bring up a dialog box...
    I am an InDesign lover, so I feel your pain. One of my clients is a manufacturer of retail items for which we design and prepare for print many packages/backer cards/etc. Before the artboard feature existed, we had a separate Illy file for each SKU. It has allowed us to be a lot more organized, and you don't get hit with seven gazillion files when you open up a folder. (I tried to get them to convert to InDe, but really, it's not set up for this kind of use, so I've had to learn the ins and outs of Illustrator and have come to appreciate it for many things. Alas, type manipulation isn't one of them, but it's designed to draw pictures, not set type.)
    Good luck and best regards--D

  • How can i print only pages which have been highlighted, from a multi page file?

    How can i print only pages which have been highlighted, in a multi page file.

    Ah, I see want you mean. This might not be practical for you, but if you select one instance of the highlighted text and add a [space] to the little sticky note, all of the highlighted text on that page will appear in the summary.

Maybe you are looking for