Scale Graphics g in jpanel for print

hi, im having a simple problem.
i am trying to make a program print something.
i have looked at many printing scale functions
but they have not worked for me.
i am passing Graphics g to a class that is drawing on it.
i do not want to change this class to draw with graphics2d.
why isnt this scaling?
any suggestions big or small appreciated!
i dont know if it is worth mentioning that this method is inside a
class that extends JPanel.
public int print(Graphics g, PageFormat format, int pageIndex) {
DrawSomething.doDrawing(g); // a class that draws onto g
Graphics2D g2D = (Graphics2D) g;
g2D.translate(format.getImageableX (), format.getImageableY ());
// scale to fill the page
double dw = format.getImageableWidth();
double dh = format.getImageableHeight();
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
double xScale = dw / (length of drawing, here 250);
double yScale = dh / (height of drawing, here 250);
double scale = Math.min(xScale,yScale);
g2D.scale(scale, scale);
return Printable.PAGE_EXISTS;
}

>
return Printable.PAGE_EXISTS;
}BTW, this is not a good idea. Your print job will probably continue indefinitely this way. do return page==0

Similar Messages

  • Replacing Graphics w/ White Boxes For Printing?

    Hey!
    Is it possible to replace graphics/images with white boxes when exporting/printing? Using the "Omit for OPI" option produces black boxes - even worse for saving ink!
    Thanks and Merry Christmas!
    Lars

    You can use the Attributes panel to make individual items non-printing or you can put them all one one non-printing layer. When you print proofs or make proof PDFs for the client you can include non-pri ting objects. Turn that option off for the final output/PDF.

  • What monitors are currently most appropriate for print jobs?

    Hi, I'm a free lance graphic designer for 20 years already and have always used Aperture Grid CRT Trinitron monitors as the most accurate for creating color jobs for print. I bought my last set of monitors Sony's Multiscan G420 in 2001. While they are still pretty accurate, they are aging and I'm thinking of buying new monitors. At that time - 2001, when I purchased my monitors there were a few other technologies like Shadow mask and LCD which were not good at all for creating graphic design color jobs for print.
    I'm not sure if they still sell Aperture Grid CRT monitors anymore and would like to find out what monitors/monitor technology is currently most appropriate for print jobs?
    I will greatly appreciate your tips.

    I'd go with a Sony, Samsung, or Sharp LCD and use it as a monitor, then professionally calibrate it.
    Viola, you have quality, resolution, saturation, accuracy, dependability, all in one

  • Can FW CS3 be used for graphic for printing?

    I am very familiar with FW but I do not like Photoshop,
    however I have both I preffer to use FW. As I have seen on one
    presentation new FW CS3 has CMYK pallete so my question is: can FW
    CS3 be used for preparation of graphic for printing or what are the
    obstacles? After preparing images in FW I will use InDesign for
    text or maybe the text in FW is wector and maybe I could use FW
    including text and not to use INDEsign far small projects? Does
    anyone has any experience with this subject?
    Regards
    Martin

    qnnick wrote:
    > I am very familiar with FW but I do not like Photoshop,
    however I have both I
    > preffer to use FW. As I have seen on one presentation
    new FW CS3 has CMYK
    > pallete so my question is: can FW CS3 be used for
    preparation of graphic for
    > printing or what are the obstacles?
    Fireworks does not operate or export in CMYK color space. It
    was
    developed for screen images only, and operates and exports in
    RGB color
    space. It is not recommended that you use it in preparation
    of images
    for print. You mentioned that you don't like photoshop. You
    might like
    Illustrator better.
    Linda Rathgeber [PVII] *Adobe Community Expert-Fireworks*
    http://www.projectseven.com
    Fireworks Newsgroup:
    news://forums.projectseven.com/fireworks/
    CSS Newsgroup: news://forums.projectseven.com/css/
    http://www.adobe.com/communities/experts/

  • How do I split a large wall graphic on Illustrator into sections for printing?

    I work in marketing and occasionally have to put together graphics on Illustrator.
    I am currently putting together a large wall graphic for an exhibition and want to find out how to split it into sections for printing. It has a total length of 5757mm but will need to be split into 6 panels (4x 980mm, 1x 841mm & 1x 996mm)
    It would be best for me to design this as one large graphic and then split it, however I'm not sure of the best way to do this.
    Any help would be greatly appreciated!

    Louise,
    There is just room enough for the whole artwork in 1:1 within the Workspace.
    You may create it as one entity, then create Artboards for each panel, but the exact way depends on a few things such as whether you are working with overlaps and whether the printer prints to the edge or has a non printing area.
    You may need two sets of the artwork with every second artboard on each so that you end up with overlapping artboards for printing/assembly.

  • Creating new graphics object from a existing one and sending it for print

    Hello,
    i have a graphics object which is big in size, I am creating a new graphics object from the existing one as given below
    //map is a graphic object
    Graphic g1 = (Graphic)map.create(x,y,width,height);
    Graphic g2 = (Graphic)map.create(x,y,width1,height1);
    Graphic g3 = (Graphic)map.create(x,y,width2,height2);
    arrayList.add(g1);
    arrayList.add(g2);
    arrayList.add(g3);
    Now I want to send the graphic object g1,g2,g3 for print in the method
    public int print (Graphics g, PageFormat pf, int idx) throws PrinterException {
    // Printable's method implementation
    if (curPageFormat != pf) {
    curPageFormat = pf;
    pages = repaginate (pf);
    if (idx >= 3)) {
    return Printable.NO_SUCH_PAGE;
    g = (Graphics) arrayList.get(idx);
    return Printable.PAGE_EXISTS;
    This is not working... what is wrong. can anybody suggest..
    I tried standardprint.java to print a object inside a scrollpane, it is not printing the entire diagram. so I am thinking of something like this.... Please let me know what to do....
    Thanks
    Serj

    The easy way to do this is create a copy using Windows Explorer.
    Open the project and go to File > Rename.
    Then you have your 2013 ready made project.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • I'm using Adobe Acrobat with the hope of editing a url on the graphic...a simple 3-letter change, save, close and send for printing..how do I get in edit mode to delete 3 letters and insert 3 new letters?

    ?I'm using Adobe Acrobat with the hope of editing a url on the graphic...a simple 3-letter change, save, close and send for printing..how do I get in edit mode to delete 3 letters and insert 3 new letters?

    pkg4ibm wrote:
    editing a url on the graphic...
    Not sure what you mean by that: is that URL in an image, or is it actual text?
    If it is in an image, then you need to extract the image, edit it with something like Photoshop, then add it back to the PDF.
    If the URL is actual text, I suggest that you remove the entire URL, then add the corrected link.

  • Need a Graphic Object for printing

    Hi,
    I generate a report with data from a database.
    At the moment I have an object that implements printable.
    Everytime the print method is called the report has
    to be created new.
    Now I want a seperate Graphics2D object in which teh report
    is created for once. And when a print
    job is started I want to copy it to the Graphics object
    in the printmethod.
    How can I create a Graphics2D Object for my own ?
    Thanx Stephan

    try:
    BufferedImage bufferedImage = new BufferedImage(500, 200, BufferedImage.TYPE_INT_RGB);
    Graphics2D g = (Graphics2D) bufferedImage.getGraphics();
    g.drawString("Go to town!", 10, 10);This is how I did it when I needed to create images in a servlet. I expect it would also work for printing purposes... I guess I'll find out soon enough. :)

  • Framework for printing graphics

    Hello!
    Can anyone suggest me a framework for print with java? For example I need print Frame Graphics or print simple text.
    Thanks!
    Tommaso Taruffi

    Daniel:
    Try checking the "Advanced" area of your Print Settings. You may have the "Omit for OPI" elements checked. Having them checked will omit ALL of those images in your document, not just the images you want to not print.
    If you want some images only to not print, either choose "nonprinting" in the Attributes palette, or move the images to a new layer and "hide" that layer and tell inDesign to only print "visible" layers

  • How do I change the rendering resolution for printing?

    Has anyone figured this out yet? I am writting an app the prints out forms and lots of reports and they keep coming out very ugly because it is only printing at 72dpi, I need it to be at 300 or so...
    Thanks,
    Peter

    I figure out how to do this after much searching. Before I was creating a bufferedimage then drawing all my content on that then drawing the bufferedimage on to the graphics that go to the printer.
    Instead I found out the better approach is to do something like this:
    class PrintablePage extends JPanel implements Printable {
      PrintablePage() {
        super(false); //Disable dubble buffering
      public void paintComponent(Graphics g) {
        //Do all the drawing here
      public void print(Graphics g, PageFormat format, int page) {
        Graphics2D g2 = (Graphics2D)g;
        this.paint(g2);
        g2.dispose();
        g2 = null;
    }For some reason this prints out much higher quality than any other way I have found to print things. I don't know the exact dpi, but it is much better than the 72 I had before.

  • Where did all the setting for printing go in PSE8-Mac?!

    OK, I'm probably missing some obvious settings somewhere, please tell me after you read my rantings...
    I'm using the 'Full Edit' mode, assuming that is important. But the new Print Dialog looks like it has been dumbed down for some one, not sure who, however has it has me completely confused. There are now only three 'steps' for printing. One and two are self explanatory. However...
    Step three concerns paper size, image size and several other details. Just for testing, I created a new 4 x 6 inch, 300dpi page and drew some lines. Command-P. Proper printer is selected, select "Letter" as the paper size. 4 x 6 inch appears selected as the "Print size" (I thought that was because of the original page size, but it appears to simply be the default). That is a detail that could easily be over looked by a new user. If the original image is larger than 4 x 6, it will, obviously be either cropped or reduced to fit those dimensions! It seems to me that the "Select Print Size" should automatically assume to be the image size. OTOH, I can see that some people may want to do all their printing on one size of paper. In that case, why not have a preference for the default and let the user change it when they change paper sizes (if they want)?
    Now, if the user happens to notice that a new 8 x 10 inch image is going to be printed in a 4 x 6 area, she will now decide to check the other settings available in the pop up menu. OK, there IS an 8 x 10 inch choice. But look, what's this "Custom" choice? Let's investigate...Now this is strange! The defaults there seem to be 1.383 inches for height AND width! Who came up with that weird number?!
    Oh, there is a "Scale to Fit Media" check box. Checking that now makes the height and width somewhat closer to reality, they now indicate the pape dimensions. That IS logical, but not extremely helpful, IMHO. By the way, the second time one selects the "Custom" choice, the correct, original image size appeared in the Print size boxes. Although I cannot seem to get those to reappear. Oh well...
    My point is, how do these confusing configurations help? Beyond me, anyway.
    BTW, the dpi settings all seem to be 'computed' at one less than the number set by the user for an image. For example, a new image page created at 300 dpi shows 299 in the Custom dialog, 150 shows 149, etc. Close, but why not exact? Furthermore, why can't the user select any dpi they choose? Isn't that what the computer if for; calculate what happens to the pixels when they print at a different setting than the image? Sure, the user should be warned that terrible images my result, but if that's what the user wants, let it be done! Who's running this show, anyway? Oh yeah, I remember, now...excuse me for asking, I'm only a paying customer, what do I know?!
    Lastly, if one has more than one image open, every single one can easily be printed, accidentally. Why? Because they will all appear in the Print Dialog. Don't you see them? Over there on the left. Yeah, I see them, but why doesn't the image I have in front, the one I'm working on, be the one I probably want to print? Many of the others may simply be images I'm borrowing parts from. Why do the developers think I always want to print every image that might be open? I don't have any idea, either. Sure, there are a couple of ways to prevent this multiple image printing; select the one you don't want to print and use the "minus" button or simply close all those images before going to the Print dialog. Guess what. Using the 'minus' button only works for this printing, the next time you ask to print they will all be there, again. And, what if you aren't really finished using some of those extra images that you closed? Now you get to re-open them all again. Completely unnecessary steps because of poor user considerations/research, in my humble opinion. Again, this is exactly the thing that preferences are made for. Or, put them in the "Edit Guided" mode! Or, better yet, just give me back the old Print dialog! Nice!
    Now, I am extremely glad to see that PSE can now remember to keep that stupid Panel bin out of the way! Finally! Three more inches of screen to work with!!! Hooray!! Unfortunately, it still can't remember what the last setting for the jpeg quality was...still defaults to ZERO! Sure, that's the setting I always want to use, it's so much fun letting people try to guess what is in the image...one would think after 8 iterations this could be fixed. One down, umpteen to go. Oh well, what do you want for $80?

    Thanks for your listening/reading and I'll take your advice about dropping a note to the developers, but I won't be holding by breath! I doubt that they consider this a real problem. It's really just my ranting!
    Your solution is probably the 'fix' they might suggest, anyway. However, I'd rather have the screen space than a list of thumbnails of images I already have open. command-plus and/or minus is a pretty quick way of making it easy to see anything that might be visible. Of course, I'm sure there are other uses for the Project Bin that many find useful. Even though I have a 24" iMac, I rather like using the screen space the way I want, not an arbitrary way that got developed. I just don't see why developers can't program an app to allow every conceivable method of use by every living and future user! LOL!!!
    I guess today was the first time I've printed anything since installing 8. I was, quite confused when presented with the new Print interface. Actually, I thought that must be part of the 'Guided' set up which I assume leads one by the hand as much as possible. "Thank you Adobe, but I'm trying to avoid unnecessary contact with strangers right now." LOL! At least I know I didn't miss some setting somewhere.
    Thanks! Have a great weekend! And don't get scared too much tonight!

  • Need Help Please - PSD InDesign (for print)?

    Hello Everyone,
    I'm a graphic designer for a company that has decided to run some print ads in a magazine. At the time, I only had Photoshop to create their advertisement with. Now they have purchased CS4, which will make my life easier in the future, however, for now I have the problem of creating my advertisement made with Photoshop and creating a print ready PDF.
    Here is my problem:
    - I created a PSD at 8.5" x 11" at 300ppi
    - I did not take in to account for the 0.125" bleeds and 1/8" trim
    - It needs to be SWOP compliant (I figured out I can export a PDF that adheres to SWOP)
    - Fonts should be Type 1 Postscript, no TTF (I'm using Helvetica and Arial, when I export the PDF, it says the embedded fonts are TTF)
    - I'm totally lost with regards for designing work for print!
    Here the specs they gave me, AFTER I created the design in Photoshop
    ====
    Full page, full bleed 8.0" 10-3/4" (**I created my PSD as a 8.5" x 11" - without regard to bleeds**)
    Include 1/8 bleed over all to ensure full page bleed
    and keep live copy 1/4 from trim and crop marks.
    CMYK, 4-color process printing only.
    Do not add bleed to partial page ads.
    All requirements are based on Specifications for Web Offset
    Publications (SWOP). Any deviation from these specifications may
    result in less-desirable printed results.
    We support PDF files generated by Adobe Acrobat using
    the X-1A Job Option Settings for Distiller. In order for
    prepress to generate printable PDF s, it is important that
    the native file is prepared accordingly.
    Preparing native files for printable PDF s:
    All images/scans must be in CMYK mode,
    300 dpi resolution
    Use Postscript (Type 1) fonts only. No True
    Type, Windows/PC or custom fonts accepted
    Embed all fonts
    Do not nest EPS files in other EPS files
    Four-color solids should not exceed SWOP
    density of 280%
    Provide two digital color proofs at 100% size, created
    from the supplied digital file, on a contract-quality,
    digital halftone proofing system in accordance with
    SWOP web coated standards (AGFAPressmatch,
    Kodak Approval, DuPont Waterproof, etc.). Laser or
    inkjet proofs are not considered accurate in color and
    are supplied for content confirmation only.
    If supplied, the publisher is not responsible for color variances
    between the digital file and final color reproduction.
    NOTE: If proofs are not supplied, make-goods due to
    reproduction quality will not be honored.
    ====
    I've never done print work before, as I'm mainly a graphic designer for the web.
    Any help on this matter would be greatly appreciated! Unfortunately for me, they bought the advertisement space with the magazine for the running of the next issue before speaking with me. So I'm under extreme pressure to get this underway. I'll be most grateful for any help or guidance, Thanks guys!
    - D

    You can Place a PSD in Indesign, but unless the bleed is a single color,
    it's going to be easier to add bleed in Photoshop. Bleed is whatever
    gets cut off when they trim the paper. Trim is close, but not exact, so
    whatever picture or color goes to the edge of the paper must extend
    beyond the edge to avoid trim including some white when the trim is not
    quite perfect. If it's a picture that goes to the edge, you need to
    figure out a way to extend the picture beyond the edge. If it's white
    that goes to the edge, then you don't need bleed. If it's a non-tone
    color field (a single color) then you could Place the PSD in Indesign
    and add bleed color behind it and extending beyond the edge of the page.
    The magazine should not concern themselves with TT or T1 fonts, either
    one should work. That said, Helvetica and Arial are very close. If your
    Helvetica is Type 1, just use Helvetica for the whole thing. If you
    embed it in the PDF, it should show there as a Type 1 subset.
    Kenneth Benson
    Pegasus Type, Inc.
    www.pegtype.com

  • AP Check printing setups for printing checks on your own

    HI
    I am wondering if there a good document which deals with AP check printing with MICR and signature on your own check stock
    thanks

    Recently we started to deal with AP check printing in our organizatin. It was a daunting task with the information and resources scattered all over and missing critical pieces of information to make sense out of the whole process flow. We attempted to go through the AP check printing internally and succeded.
    I decided to post the information for the benefit of people about the our experience
    Check Printing Basics and Beyond for Printing Checks on Your Own
    by
    Sarma Chilukuri
    This article deals with what is needed to get your own checks printed. It is a first attempt to uncover all the hidden rules that one should be aware to get your own checks printed. The first section deals with the basic AP check printing setup, while the 2nd half explores some of the flow of events that make it possible to print the check.
    Part I – Basic Setup
    AP Setup for check printing
    There are multiple steps in the AP check printing. First set of steps deal with the AP side setups. The second step is to get the System side setups. The system side setup deals with printer setup and program options setups. The last step would be to make the print format files configured with the vendor provided escape sequences in the laser print format file.
    Step 1: login as Payable Manager
    Step 2: Bank Setup: Navigate to Setup: Payments > Banks
    1.     Make sure the Bank # etc are present
    2.     Tab to “Bank Accounts”, and make sure your account # has been setup
    3.     On the Bank Accounts screen, tab to the “Payables Documents” and verify that Payment format (E.g., COK Laser Format) has been entered. This “Payment format links to next section where we associate it to the right payment program.
    Fig 1. AP Payment Bank Setup Screen
    Step 3: Program Setup (Setup: Payments > Programs)
    As we know there are only 5 formats 3 of which are “Ever Green Laser” (APXPBFE G|L|F) which are explained in the AP Users Guide. For your own form printing, you have to associate the format to APXPFEL (laser format) program. Also, the APXPBFEL or APXPBFEF call the APXPBFEG, which is the base program that pulls the data from oracle base tables. APXPBFEL is the one which allows us to print the checks with MICR and signature on a plain paper not on a pre printed stationery.
    Fig. 2 AP Payment Format Setup Screen
    Printer Styles, Drivers setup
    The above process summarizes the AP Setup. As a DBA, the printer setup needs to be validated. The base install provides the right setup to some extent. But the differences in printers and print queues may add some complexity to the final configuration. The following section discusses the set up the base install provides and changes as needed.
    Step 1. Login as system Administrator
    Step 2: Style (Install : Printer > Style)
    Look for the “PORTRAITHPLJ4LASCHECK”. This one is associated with the SRW Driver Called, “APLASP” (AP Laser printer format).
    Step 3: Driver (Install : Printer > Driver).
         1. The “PORTRAITHPLJ4LASCHECK” is associated with a “User Driver” of PORTRAIT for HPLJ4 and and a SRW driver of “APLASP”
         2. Also notice that there is an Initialization string at the bottom of it. This initialization string gets called as pre-report trigger for the APXPBFEG program (APXPBFEG.rdf) file. It sets the kind of format it should be. Please see the Appendix A for details on these printer pcl code translations. The Initialization string was as follows:
    Initialization: /eE/e&l0o2a7C/e(s0P/e(8U
    Step 4: Printer type (Install : Printer > Register)
    Each printer type is associated with a set of styles. Make sure the printer that was selected has the above style and its associated driver listed against that.
    Fig. 3 System Administrator Printer Seups
    Step 5: Program Setup (Concurrent > Program > Define)
    This step holds the key for check printing. It is necessary to define whether you need the check on top followed by the Stub or the other way around. The way it is controlled is based on the APXPBFEG.rdf, the report definition file and the APLASP.prt (Printer Style associate with the Portrait laser check format SRW driver). The APLASP.prt file ($FND_TOP/reports) has two identical setups called the 100 series and the 200 series. Those identical sets of setups define where the MICR and signature print on the check. The following table lists the some of the codes in the 100 series. Please refer to Doc ID #146452.1 for complete details.
    Fig. 4 System Administrator Concurrent Program Definitions
    CODE #     Code Definition
    100     Electronic check activation string
    101     1st Check #
    102     2nd Check #
    104     Deactivate check number mode string
    111     Activate MICR line
    112     MICR Deactivation / reset the printer head position
    121     1st Signature
    122     2nd Signature
    141     Address font activation string
    199     Return to default state string
    Table 1. APLASP.prt -- MICR Activation Codes
    The above code block repeats itself the same way in the 200 series. The decision to activate one way or the other controls the Check printing.
    Step 2: Setting up the Option block
    In the concurrent program definition for the APXPBFEL, there is an Options block in the middle. You need to list the codes that you want to activate. Please refer to Doc ID # 186640.1 for some explanation on these.
    E.g.,
    p_printer_code_mask="201,211,221,241" p_sig2_amount="" p_sig3_amount="" p_sig1_vendnum="" p_sig2_vendnum="" p_sig3_vendnum="" p_country_to_ignore="US" p_continuous_stationery="N"
    Step 3: Output format is Text
    Text format is sufficient, as the printer will pick up these escape sequences anyway.
    Fig. 5 System Administrator Concurrent Program APXPBFEL Options Definition
    UIPRINT.TXT, UIFONTS.ALI
    One needs to be aware of a few more pieces in this puzzle. The UIPRINT.TXT identifies to the Oracle Applications the print queues that were setup. This file is needed to set your PCL / Post Script printer definitions. I did not have to really tinker with these files other than identifying the PCL and Post Script Q’s that were setup on the UNIX box.
    Part II: Integrating all the pieces
    The above setups are all documented in various articles. We need to understand a few more steps to see how all these pieces come together.
    What you need to know about APXPBFEG.rdf
    APXPBFEG (.rdf) is the report file which when called pulls the data from Oracle. If you open the APXPBFEG.rdf in the Oracle reports, there is initialization to the report called, SRW.Init. This will bring in the initialization string associated with the PORTRAITHPLJ4LASCHECK driver definition file. Also, please be very careful with this report format file. When you open it, there is small tiny empty block. in the first block which calls the printer initialization code 100/200 under the Format Mask (from APLASP.prt). If this portion gets changed or messed up, one can end up with some unexpected results. Each of those blocks like MICR, CHECK etc… have associated format triggers and printer codes.
    Please make sure that the printer mask is properly handled. I noticed that the 200 series MICR (211) and Signature (221) printer masks were tied to 111 and 121 respectively. These should have been 211 and 221. The other place you need to be careful was the printer code before and after is proper.
    For E.g.,
    For the MICR, the ”printer code before and after columns “ should be 111 and 112 (or 211 / 212) respectively while Format Trigger should reference to 111 (211).
    Fig. 6 APXPBFEG rdf file printer mask and Format Triggers
    The escape sequences in the APLASP.prt file for these codes will play the crucial role in getting our format around the report output that gets generated from the APXPBFEG program. Please refer to the explanation of these escape sequence codes in the APPENDIX A.
    At this point when you run the program, you will see that the formatted output report file will have all the initialization strings and the output associated with that. You can compare the fields and verify the results. Let us closely examine the parts of the 111 and 121 where the micr and signature prints. The key to this to code the escape sequences the right way to get the associate MICR and signature print out correctly.
    Fig. 7 APXPBFEG rdf file MICR printer mask and Format Triggers
    Code 111 and Code 112 from the APLASP.prt file.
    I broke the line into pieces to illustrate the exact escape sequence code.
    Code "211"
    Part 1: esc "&f0S" esc "&f0y0X" esc "&l0E" esc "&a0L"
    Part 2: esc "(8M" esc "(s0p8.00h8.0v0s0b80T" --- This will be provided by the ROM
    Cartridge provider
    Part 3: esc "&k15H" esc "*p3215Y" esc "&a13.8C"
    code "212"
    Part 1 : esc "&f1x3x8X"
    Part 2 : esc "&f1S"
    Let us go over these 2 sets of codes carefully.
    Escape Code     Meaning     Comment
    esc "&f0S"      Push Cursor Position     
    esc "&f0y0X"     Define Macro ID 0 and Start Macro Definition     
    esc "&l0E"      Define Top Margin at 0 Lines     
    esc "&a0L"      Define Left Margin at Column 0     
    esc "(8M"     8M Symbol SetNote : As per pcl codes this happens to be Font Primary JIS Math 8 symbol     MICR Part 1 : Provided by the Vendor from where you the ROM cartridge
    esc "(s0p8.00h8.40s0b0T"     {Fixed Pitch}{pitch 8.00 cpi}{Font Style 8.40}{Medium Weight}{Typeface 0}     MICR Part 2 : Provided by the Vendor
    esc "&k15H" esc "*p907Y"     Set HMI = 15/120" Vert position = 907 Dots     
    esc "&a13.8C"     Move to Column 13.8     
         CODE 112     
    esc "&f1x3x8X"     {End Macro Definition}{Call Macro}{Delete Macro ID}     
    esc "&f1S"     {Pop Cursor Position}     At this point, the MICR gets printed
    Table 2. Escape Sequences in APLAP.prt file Explanation
    Fig. 8 APXPBFEG rdf file Signature printer mask and Format Triggers
    The signature piece (221) has also similar meaning.
    Escape Code     Meaning     Comment
    esc "&f0S"     Push Cursor Position     
    esc "*t300R"     300 DPI Graphics resolution     
    esc "*p1500X"     Horiz position = 1500 Dots     
    esc "*p650Y"     Vert position = 470 Dots     
    esc "(4B" esc "(s1p53v0s0b102T"esc "&f0S!"     Symbol SetProportionalPoint Size 53UprightMedium WeightTypeface 102Push Cursor Position!     Vendor gave the us esc "(4B"esc"(s1p53v0s0b102T!"Note: the ! when the it pushes the ! and that is where it prints the signature piece. The first part forms the symbol set , say (4B and the later part forms the signature font and ! is the piece. I took the ! from the above and let it stay with the 3rd part of it so that signature does not print twice.
    esc "&f1S"      Pop Cursor Position     
    esc "*p+121Y"     Move down 121 Dots     
    esc "&f1S"     Pop Cursor Position     
    Table 3. Escape Sequences for Signature in APLAP.prt file and Explanation
    Summary
    One can print their own checks using the above steps. This can work as a cost effective solution for small organizations where the budgetary constraints are tighter. We are successful in getting the AP Checks printed using the above method.
    References
    Metalink Doc ID # 186640.1, Different Payment Formats …
    Metalink Doc ID # 60936.1, Step by Step Guide to Setup a Printer in Oracle Applications
    Metalink Doc ID # 250543.1, How to Create An Initialization String for a Payable Check Format
    Metalink Doc ID # 48680.1, Accounts Payable FAQ – Payment Batch, Check
    Metalink Doc ID # 1074792.6, Exclamation Point (!) Prints On Check When Using APXPBFEL And Cartridge
    Metalink Doc ID # 158486.1, APXPBFEL Evergreen (Long Laser)
    Metalink Doc ID # 146452.1, Listing of p_printer_code_mask Default Values for APXPBFEL
    Chapter 2, Oracle Payables user guide
    Appendix A
    APLASP.prt printer codes explanation
    code "200" esc "&l0o2a6d66p8.000c2e1x0l63f1H" esc "&k12.00H" esc "(8U"
    esc "(s0p10.00h12.00v0s0b3T" esc "&k11.75H" esc "&a1l0R" control(M) esc"&f3005y4X"
    {Portrait}
    {Letter}
    {6 LPI}
    {Define Page Length to 66 Lines}
    {Set VMI = 8.000/48"}
    {Define Top Margin at 2 Lines}
    {Select 1 Copies}
    {Disable Perf Skip}
    {Define Text Length as 63 Lines}
    {Feed from Tray 1 (upper)}
    0.1 esc "&k12.00H"
    {Set HMI = 12.00/120"}
    0.2 esc "(8U"
    {Roman-8 Symbol Set}
    0.3 esc "(s0p10.00h12.00v0s0b3T"
    {Fixed Pitch}
    {pitch 10.00 cpi}
    {Point Size 12.00}
    {Upright}
    {Medium Weight}
    {Typeface 3}
    0.4 esc "&k11.75H"
    {Set HMI = 11.75/120"}
    0.5 esc "&a1l0R"
    {Define Left Margin at Column 1}
    {Move to Row 0}
    control(M)
    0.6 esc"&f3005y4X"
    {Define Macro ID 3005}
    {Enable Overlay}
    code "201" esc "&f0S" esc "&a1.25r70C" esc "(8U" esc "(s1p14v0s3b4148T"
    {Push Cursor Position} esc "&f0S"
    1.1 esc "&a1.25r70C"
    {Move to Row 1.25}
    {Move to Column 70}
    1.2 esc "(8U"
    {Roman-8 Symbol Set}
    1.3 esc "(s1p14v0s3b4148T"
    {Proportional}
    {Point Size 14}
    {Upright}
    {Bold}
    {Typeface 4148}
    code "202" esc "&f0S" esc "&a20.25r70C" esc "(8U" esc "(s1p14v0s3b4148T"
    {Push Cursor Position}
    2.1 esc "&a20.25r70C"
    {Move to Row 20.25}
    {Move to Column 70}
    2.2 esc "(8U"
    {Roman-8 Symbol Set}
    2.3 esc "(s1p14v0s3b4148T"
    {Proportional}
    {Point Size 14}
    {Upright}
    {Bold}
    {Typeface 4148}
    code "211" esc "&f0S" esc "&f0y0X" esc "&l0E" esc "&a0L"
    esc "(0Q" esc "(s0p8.00h8.40s0b0T" esc "&k15H" esc "*p907Y" esc "&a13.8C"
    {Push Cursor Position}
    11.1 esc "&f0y0X"
    {Define Macro ID 0}
    {Start Macro Definition}
    11.2 esc "&l0E"
    {Define Top Margin at 0 Lines}
    11.3 esc "&a0L"
    {Define Left Margin at Column 0}
    11.4 esc "(0Q"
    {0Q Symbol Set}
    11.5 esc "(s0p8.00h8.40s0b0T"
    {Fixed Pitch}
    {pitch 8.00 cpi}
    {Font Style 8.40}
    {Medium Weight}
    {Typeface 0}
    11.6 esc "&k15H" esc "*p907Y"
    {Set HMI = 15/120"}
    {Vert position = 907 Dots}
    11.7 esc "&a13.8C"
    {Move to Column 13.8}
    code "212" esc "&f1x3x8X" esc "&f1S"
    {End Macro Definition}
    {Call Macro}
    {Delete Macro ID}
    12.1 esc "&f1S"
    {Pop Cursor Position}
    code "221" esc "&f0S" esc "*t300R" esc "*p1500X" esc "*p470Y"
    esc "(30C" esc "(4B" esc "(s1p53v0s0b102T!"
    esc "&f0S!" esc "&f1S" esc "*p+121Y" esc "&f1S"
    esc "&f0S"
    {Push Cursor Position}
    21.1 esc "*t300R"
    {300 DPI Graphics resolution}
    21.2 esc "*p1500X"
    {Horiz position = 1500 Dots}
    21.3 esc "*p470Y"
    {Vert position = 470 Dots}
    21.4 esc "(30C"
    {30C Symbol Set}
    21.5 esc "(4B"
    {4B Symbol Set}
    21.6 esc "(s1p53v0s0b102T!"
    {Proportional}
    {Point Size 53}
    {Upright}
    {Medium Weight}
    {Typeface 102}
    21.7 esc "&f0S!"
    {Push Cursor Position}
    21.8 esc "&f1S"
    {Pop Cursor Position}
    21.9 esc "*p+141Y"
    {Move down 121 Dots}
    21.10 esc "&f1S"
    {Pop Cursor Position}
    code "222" esc "&f0S" esc "*t300R" esc "*p1500X" esc "*p650Y"
    esc "(30A" esc "(s0p.426h35.25v0s0b128T" esc "&f0S!"
    esc "&f1S" esc "*p+141Y" esc "&f1S"
    {Push Cursor Position}
    22.1 esc "*t300R"
    {300 DPI Graphics resolution}
    22.2 esc "*p1500X"
    {Horiz position = 1500 Dots}
    22.3 esc "*p650Y"
    {Vert position = 650 Dots}
    22.4 esc "(30A
    {30A Symbol Set}
    22.5 esc "(s0p.426h35.25v0s0b128T"
    {Fixed Pitch}
    {pitch .426 cpi}
    {Point Size 35.25}
    {Upright}
    {Medium Weight}
    {Typeface 128}
    22.6 esc "&f0S!"
    {Push Cursor Position}
    22.7 esc "&f1S"
    {Pop Cursor Position}
    22.8 esc "*p+141Y"
    {Move down 141 Dots}
    22.9 esc "&f1S"
    {Pop Cursor Position}
    code "241" esc "&a-100V" esc "&l5.8C" esc "(8U" esc "(s0p12.00h10.00v0s3b3T" esc "&k11.75H"
    41.0 esc "&a-100V"
    {Move up 100 Decipoints}
    41.1 esc "&l5.8C"
    {Set VMI = 5.8/48"}
    41.2 esc "(8U"
    {Roman-8 Symbol Set}
    41.3 esc "(s0p12.00h10.00v0s3b3T"
    {Fixed Pitch}
    {pitch 12.00 cpi}
    {Point Size 10.00}
    {Upright}
    {Bold}
    {Typeface 3}
    41.4 esc "&k11.75H"
    {Set HMI = 11.75/120"}
    code "299" esc "(8U" esc "(s0p10.00h12.00v0s0b3T" esc "&k11.75H" esc "&l6D"
    {Roman-8 Symbol Set}
    99.1 esc "(s0p10.00h12.00v0s0b3T"
    {Fixed Pitch}
    {pitch 10.00 cpi}
    {Point Size 12.00}
    {Upright}
    {Medium Weight}
    {Typeface 3}
    99.2 esc "&k11.75H"
    {Set HMI = 11.75/120"}
    99.3 esc "&l6D"
    {6 LPI}

  • PNG for print

    I have a number of files where I have imported a graphic into Illustrator as a PNG in order to have a transparent aspect to the graphic.
    But when I print the transprent quality is lost and you get a flatterned version of the PNG instead.
    Is there a file format I can save in when producing my graphics in photoshop which give the same working characteristics as a PNG but that will print exactly what I'm seeing on screen?

    Excellent. Sometimes the answers just so obvious!
    Cheers for takin the time

  • Hw can I generate XY graphs directly in a vector data format for printing ie pdf

    A further question re. Printing of Graphs
    There are many similar questions but none where the answers are acceptably adiquite or two or three were the link was broken,
    "Developer exchange forums have been moved" and a pointer to the new
    site, unfort it was hard to find or guess the rest of the link.
    So here is my angle on this problem;
    So far I have tried;
    Using property node: "App.  Printing.Default Printer" to select the printer to use, then
    Using Report Functions to print controls;
    New Report, to generate a new report reference
    Set Report Orientation
    Set Report Margins
    Set Report Font
    Set Report Header Text
    Set Report Font
    Set Report Footer Text
    loop for each page
    Set Report Footer Text,     With page number
    Append Control Image to Report,      several times
    New Report Page
    Until the end of the last page
    Print Report
    Dispose Report
    Initially using existing XY-Graph controls from the front panel.  These
    are on a page of a Tab control to hide these controls while not in use
    and allow them to be hidden while generating the printout. 
    Unfortunately when this page is hidden any graph scales set to
    autoscale don't, (normally don't need to and would otherwise be a waste
    of processor time), resulting in graph plots going off scale or
    becoming a line along the axis.
    An issue is that what is printed appears to be read from the screen, so resolution is much
    lower than required for for printing, resulting in rather pixellated
    printed versions. These prints will usually be emailed, so tried the
    pdf995 "printer driver" but the resulting pdf file size is rather large.
     Currently trying Plot-XY on a much larger picture so as to get
    adequate resolution for printing, however suspect this will result in
    much larger pdf files and probably cause other problems. 
    The preferred solution in this case will probably be to generate print
    output, instead of based on raster images (ie jpg or png), but on a
    vector format, maybe via postscript or directly in pdf format.
    Similar graphs currently printed from Excel via pdf995
    (or OpenOffice) result in files around 20 kb per page. these can be printed at any size
    (at least upto 64 times) without becoming pixellated, so assume these
    are vector based.
    Currently a page with 4 XY Graph controls uses around 40 to 45 kb per
    page but resolution is poor and overcoming that may push file size up
    to 150 to 200 kb per page, and the whole job can be 50 to 100 pages.
    Are there any functions to generate XY graphs directly in a vector data format preferably in pdf or via PostScript format.
    Cheers
    Darryl

    Hi Darryl,
    I was able to reproduce the issue you were seeing, in which a report generation was taking up a large amount of space per page in a PDF utility. I found; however, using my attached VI (notice that it is set to *.png) and the CutePDF utility (free download at http://www.cutepdf.com/) I was able to get a per page size of about 10 KB. Also using the png I found that the image quality seemed to be quite high.
    Please try incorporating this solution into your application and see if it reduces your file sizes.
    Thanks and have a good evening!
    Cheers,
    Jonah
    Applications Engineer
    National Instruments
    Jonah Paul
    Marketing Manager, Embedded Software
    Evaluate the LabVIEW RIO Platform! - ni.com/rioeval
    Attachments:
    print_XY Graph.vi ‏23 KB

Maybe you are looking for

  • Can't install Bootcamp, stuck in Windows XP

    Hey everybody, I recently got a MacBook Pro with OS X Lion. I partitioned the hard drive and successfully installed Windows XP. I tried to install Bootcamp, but I get an error message saying that Bootcamp can only be installed in Windows 7. How can I

  • Undo not working in Indesign CC 2014

    My indesign CC is not working with Undo. How do i fix this. Never had a problem with Indesign until now!!! Ever since I updated to Mavericks and CC2014 my indesign is whacky. Also does not update things without saving.

  • Publish the content selectors

    Hi I am Surya ,I am working in bea weblogic portal 8.1 I want to publish the content selectors which is created in the Portal Admin How should i display the html file which i have uploaded? When i access my home page ,i could not see the html File wh

  • Sound not coming out for right headphone

    If I press the headphone jack backwards, I can get sound coming out of both earpieces. However, if I just let it stand still, I can only hear it coming out of the left side. I tried different headphones, so it's the iPod and not the headphones. My wa

  • Rman default configured fine and in v$rman_configuration but cannot display

    using RMAN show all; or show default device type; anything I missed? thanks. - Zack