Printing in LEAGAL & LANDSCAPE using i-Text PDFWriter.

Hi all,
I am generating a pdf document using the i-Text PDF Writer API.My requirement says the print dialog should appear with default properties as LEGAL and LANDSCAPE.
I have set the page to LANDSCAPE successfully using "PageSize.rotate()" method. But i am in a fix about setting the property to LEGAL paper.
Can anyone help me out with some sample code for it.
Please consider this issue.It is urgent.
Thanks in Advance,
RDP.

Document document = new Document(PageSize.LEGAL);and optionally
after document.open();
document.setPageSize(PageSize.LEGAL);

Similar Messages

  • Not able to print in landscape using acroread ..

    Hi,
    On solaris 5.8, we installed Acrobat7.0.
    on server we ahve a file which is in .pdf format
    $ file o2487088.out
    o2487088.out: Adobe Portable Document Format (PDF) v1.1
    I am able to pring this file using
    cat o2487088.out | acroread -toPostScript -shrink | lp -d INFOSYS2
    This prints in portrait and from rightside letters get truncated.
    I wnat to print this file in ladscape so I am giving
    cat o2487088.out | acroread -toPostScript -pairs -shrink -landscape | lp -d INFOSYS2
    It is stprinting but not in ladscape.
    Can you tell em how to can i print in landscape using acroread ?

    Help to rescue the child+
    Very urgently money resources are required, translate who how many can on webmoney, perhaps you will rescue a life to our girl!!!!!
    Eight years old to Sasha Suldina, our daughter. In 2001 doctors have made it the diagnosis: sharp a blood cancer.
    The child has passed chemotherapy in the Moscow regional oncological clinic (Balashikha),
    Now is in remission. In January, 2003 have been found out viruses of hepatitises In and With,
    That very seriously threatens life of Sasha. Now we find additional financial assets for this purpose,
    To have possibility to spend qualitative treatment of hepatitises expensive medicines(these preparations are not included in the list of preferential medicines).
    We ask everyone who is not indifferent to the stranger to misfortune, to bring whenever possible the feasible contribution to business of rescue of the girl.
    Copies of documents are attached to the letter.
    Very much we ask, translate who how many can, probably you will rescue our girl
    This letter not a deceit, we Ask the help, a critical situation.
    Thanks all who helped, helps or wishes to help, the help to our girl now is necessary.
    Then we spent a lot of time with the child on air, walking on wood. After 3 hours of walks Sasha has started to complain of strong weariness and a pain in joints. Have taken temperature. 38,7. The doctor who has suspected a usual sharp respiratorno-virus infection has been immediately caused. Standard antibiotics and warm tea with a raspberry have been appointed. Late at night observed very strong pains in the bottom of a stomach and its pressure (the stomach was «доскообразный»).Fast immediately hospitalised the child in the Central regional hospital of of Balashikha with suspicion on a sharp appendicitis. Emergency operation has been spent, the diagnosis has proved to be true. The peritonitis, an inflammation began. Operation on appendicitis removal has passed successfully. But after operation condition Сашеньки has not improved. The heat (from above 38).В stably kept Every possible analyses of blood, including on rare infectious diseases, have not given results. But viruses of a belly typhus and a salmonella have been found out. Meanwhile a condition of the child promptly worsened. Haemoglobin level was more low 60, the quantity тромбоцитов and лекоцитов has sharply decreased. Donor blood and an intravenous hormone преднизолон was applied. From children's branch of oncology МООД of Balashikha, Svetlana Varfolomeyev has been invited to that moment were зав.отделением which has suspected system disease of blood at the child. Sasha it has been urgently translated in children's oncological branch where the diagnosis «sharp лимфобластный лейкоз» has been exposed, a blood cancer. Pathological бластных cages in a bone brain was more than 96 %.Состояние the child - the hardest. There has been immediately begun antibacterial therapy by antibiotics of a wide spectrum of action, in parallel - massed инфузионная therapy (glucose, физраствор), was applied преднизолон. After a while there has been begun chemotherapy of the sharp period under German report ALL BFM-90.
    Always yours, Irina and Evgenie
    SULDINA SASHA, 16.12.1996 of the river
    It is observed in the Moscow regional oncological clinic (МООД)
    (Acceptance date on the account - June, 2001)
    The clinic address: 143900 Moscow regions, Balashikha, street Karbysheva, 6, children's branch.
    The case record № 6562, an out-patient card - M - 377
    Attending physician МООД: Injushkina Evgenie Vasilevna
    Managing branch MOOD: Varfolomeyev Svetlana Rafaelevna
    The pediatrist on a residence: Меткалова Love Александровна
    The inquiry on physical inability: series МСЭ - 011, № 832324, is given out 31.10.01 Main bureaus
    медико - social examination on the basis of the Certificate № 538.
    (Physical inability is prolonged 13.11.03, the new inquiry: series МСЭ - 2001, № 1090547, is given out 13.11.03 Bureaus
    МСЭ Balashihinsky area of the Moscow area on the basis of the Certificate № 4123)
    (Physical inability is prolonged 09.12.04, the new inquiry: series МСЭ - 2001, № 5992493, is given out 09.12.04 Bureaus
    МСЭ Balashihinsky area of the Moscow area on the basis of the Certificate № 5041)
    The pension certificate: № 921810, it is given out by 20.12.02 Management ПФР of Balashihinsky area.
    Expensive operation is required, send money and rescue the girl
    The scanned copies of documents: http://new.swapfile.ru/files/31402 / % D0%9E%D1%82%D1%81%D0%BA%D0%B0%D0%BD%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%BD%D1%8B%D0%B5 + % D0%B4%D0%BE%D0%BA%D1%83%D0%BC%D0%B5%D0%BD%D1%82%D1%8B.rar
    Photos Of Sasha:
    http://new.swapfile.ru/files/31403 / % D0%A4%D0%BE%D1%82%D0%BE%D0%B3%D1%80%D0%B0%D1%84%D0%B8%D0%B8.rar
    For interested persons to render immediate material aid:
    ELECTRONIC PURSES: Transfer by means of system of payments WEBMONEY TRANSFER:
    PURSES: USD Z338444558172, EUR E227345040422, RUB R195149635709
    WMID: 416818651774
    The user (Suldin E. Ju) is certified.
    We very much hope for your support....

  • Assistance with Printing to Zebra QL220 using the LabVIEW report VI

    I currently am trying to use the LabVIEW report VI to output a formatted set of strings to the above mentioned printer.
    The UMPC hardware that runs the developed application is bare bones XP box and doesn't' have MS office installed
    I use the LV new report set to a standard report and  successfully set orientation to portrait or Landscape, set margins and set report fonts and headers.. However  in sending the text strings to this label printer (labels are 45mm X 60mm) I find that that two issues arise.
    1. Printing out double labels. The pagination fails and prints a blank label after each print when text is output.  However if I disable all headers and body text (i.e blank label print). This pagination works fine.?
    2. The formatting of the information on the page reliably, I currently use inserted blank spaces, is there a better way?
    I thought, perhaps I should try using the ZLP programming language, but then not sure how to I send it to a USB printer? Has any one had any experience with this and these label printers ?  
    Thanks
    Greg Nicholls

    hi all
    i am C sharp programer
    and i have zebra QL 220 plus
    and roll type is 42X20mm
    and i have the zebra sdk
    and i create mobile application in C# smart device
    and i tring to connect to printer from my application by bluetooth
    in sdk i got this and use
    using System;
    using ZSDK_API.Comm;
    using System.Text;
    using System.Threading;
    // This example prints "This is a ZPL test." near the top of the label.
    private void SendZplOverBluetooth(String theBtMacAddress) {
    try {
    // Instantiate a connection for given Bluetooth(R) MAC Address.
    ZebraPrinterConnection thePrinterConn = new BluetoothPrinterConnection(theBtMacAddress);
    // Open the connection - physical connection is established here.
    thePrinterConn.Open();
    // Defines the ZPL data to be sent.
    String zplData = "^XA^FO20,20^A0N,25,25^FDThis is a ZPL test.^FS^XZ";
    // Send the data to the printer as a byte array.
    thePrinterConn.Write(Encoding.Default.GetBytes(zplData));
    // Make sure the data got to the printer before closing the connection
    Thread.Sleep(500);
    // Close the connection to release resources.
    thePrinterConn.Close();
    } catch (Exception e) {
    // Handle communications error here.
    Console.Write(e.StackTrace);
    // This example prints "This is a CPCL test." near the top of the label.
    private void SendCpclOverBluetooth(String theBtMacAddress) {
    try {
    // Instantiate a connection for given Bluetooth(R) MAC Address.
    ZebraPrinterConnection thePrinterConn = new BluetoothPrinterConnection(theBtMacAddress);
    // Open the connection - physical connection is established here.
    thePrinterConn.Open();
    // Defines the CPCL data to be sent.
    String cpclData = "! 0 200 200 210 1\r\n"
    + "TEXT 4 0 30 40 This is a CPCL test.\r\n"
    + "FORM\r\n"
    + "PRINT\r\n";
    // Send the data to the printer as a byte array.
    thePrinterConn.Write(Encoding.Default.GetBytes(cpclData));
    // Make sure the data got to the printer before closing the connection
    Thread.Sleep(500);
    // Close the connection to release resources.
    thePrinterConn.Close();
    } catch (Exception e) {
    // Handle communications error here.
    Console.Write(e.StackTrace);
     and once i use ZPL method it print 17 barcod always with 16 blank Patches (labels)
    and  when i use CPCL method it print 12 BarCode always with 11 blank Patches (labels)
    and i dont know why ?
    it must print 1 Patch (label)
    what i can do  and i dont think there is eny rong with my code
    all waht i want is how i can give Length and width and how much label print coz it is always print 17 or 12 what i can do ?

  • Unable to print to oversize pages using Adobe FrameMaker 9 \ 7.2 and Distiller 9.0

    I am trying to print to PDF a publication that is full of oversize wiring diagrams from Adobe FrameMaker 9 and 7.2 with Distiller 9.0. The pages are all text and images ranging in size from standard A3 and A4 size sheets through to a foldout being 1470 mm W X 297 mm H. We have no problem printing A3, A4 and 630 mm W X 297 H. These are all Portrait images. When we set up our custom print size to accomodate the 1470 mm W X 297 mm H we get the pages without the content, and even some of the oversize pages are not the correct size on print.
    The page sizes we are using are:
    A4 (This is all good)
    A3 (This is all good)
    630 x 297 mm (This is all good)
    840 x 297 mm (Problems from here on)
    1050 x 297 mm
    1260 x 297 mm
    1470 x 297 mm
    The procedures we are using to set up the printing are:
    1.      Print to PDF (Also tried save to PDF)
    Under Print Setup make sure you select PDF Driver and select the Paper size as largest that is in your book.  Example: If A4 and A3 pages, print to A3
    2.      Select Generate Acrobat Data and select
    See attached Screen shots for the settings we are using:
    Note: Back in FM Print dialogue; make sure Print to File is turned OFF, before you click Print
    Any assistance would be greatly appreciated.
    Regards
    AJ Wilkinson

    Create a specific FM file having a custom page size appropriate to each unique "content set".
    Create a FM Book file.
    Add the FM files.
    Work up configuration (Hypertext, Cross-References, autonumbering, variables, etc.) as desired.
    In Print Setup -
    Set page size to the page size of the largest FM file in the Book.
    (you may have to go into the Adobe Printer and add one or more custom page sizes so the page size needed is available)
    Set orientation to landscape if any FM files are such.
    Idea is, if needed, FM files for the content in the various page size/orientation that is appropriate to the content.
    If that means 1FM file of custom size and appropriate orientation then do it.
    Book files can deal with it.
    Back to Page Setup.
    Do the Page Size & Orientation.
    Access 'Propertires' - is the Distiller job option selected the one you want/need?
    Create one if need be so that it is available.
    Go into the Print Book dialog.
    Configure as needed (remember Acrobat data links, etc.  &, oh yes, back in FM be happy with the configurations under tabs for PDF Setup).
    Print the Book.
    Use Distiller to take to output *.ps to *.pdf (may want the use a "watched folder")
    Output PDF can/will reflect the the different page sizes and page orientations.
    n.b., FM-Acobat-Distiller releases have a "sync band".
    It is discussed somewhere in some kb articles.
    I'm not sure if FM7.2 functions quite right with Distiller 9.
    FM 8 will (&, of course FM 9)
    I've had no problems with FM7.2 or FM8 and Distiller 8.
    Be well...

  • Error when print report from apex using apex listener 2

    Hi
    Apex 4.2
    I want print report to pdf from apex using apex listener 2.
    The print server 'Oracle APEX listener' has been defined at the instance-level.
    ACL has been configured.
    I attempt to download a report in PDF mode, it appears that it downloads,
    but when I go to open it up I get an error that the file is of the wrong type or possibly corrupt.
    Upon opening the file in Text editor, there is an error as below
    %PDF-1.4
    1 瀛楄妭鐨?UTF-8 搴忓垪鐨勫瓧鑺?1 鏃犳晥銆?

    If you use Windows the user that runs the reports server is usually LocalSystem. Check this in the Windows Services panel.
    LocalSystem has no printer access. To be able to print, you have to use a real domain user that has access to the printer. So, change the Log on properties in the Services panel.

  • How to use the text module in script

    hi,
            i script how to use the text modules and how to write the code  in layout of the script?

    Hi,
    You canr use text modules in script. You have to use standard texts .
    Standard text are maintained in SO10 transaction.
    you can create translation text for other languages also . So based on logon language it will print translation text.
    go to SO10
    give textname it say Ztextname  id as ST and language as EN
    say create, then you will get editor there maintain your text and save it . then come back . Now change language (say for german DE) say create and eneter translation text and save it.
    so now you have created a text called ztextname which you can use in your script.
    Inorder to insert the texts in your script do as below
    go to any window editor and   select path
    Insert->texts->symbols->standard symbols
    then you will get popup  in which you have to mention all the parameters that you have created earlier.
    after inserting just change language EN to sy-langu
    Reward points if useful
    About text elements Sravan already given some informatiomn
    Regards,
    Nageswar

  • How to use the text type in SAP Routine

    Hi,
    The following fields has to be populated in Stock transport order text fields at the time of saving the document & to be copied into delivery document
    1) Material type
    2) Receiving storage location
    3) Production supply Area
    STO
    Delivery
    EWM Delivery
    Origin of the field value
    Material type
    New text type to be created
    (90)
    New text type to be created (Z003)
    New text type to be created
    (Z003)
    Available in EKPO table (field name is MTART)
    Receiving storage location
    New text type to be created
    (91)
    New text type to be created (Z004)
    New text type to be created
    (Z004)
    Available in EKPO table (field name is LGORT)
    Production supply Area
    New text type to be created
    (93)
    New text type to be created
    (Z006)
    New text type to be created
    (Z006)
    To be retrieved from Control cycle table (PKHD-PRVBE), if the Kanban indicator (EKPO-KANBA) is ‘X’.
    With Best Regards,
    SDN user.

    Hi,
    You canr use text modules in script. You have to use standard texts .
    Standard text are maintained in SO10 transaction.
    you can create translation text for other languages also . So based on logon language it will print translation text.
    go to SO10
    give textname it say Ztextname  id as ST and language as EN
    say create, then you will get editor there maintain your text and save it . then come back . Now change language (say for german DE) say create and eneter translation text and save it.
    so now you have created a text called ztextname which you can use in your script.
    Inorder to insert the texts in your script do as below
    go to any window editor and   select path
    Insert->texts->symbols->standard symbols
    then you will get popup  in which you have to mention all the parameters that you have created earlier.
    after inserting just change language EN to sy-langu
    Reward points if useful
    About text elements Sravan already given some informatiomn
    Regards,
    Nageswar

  • Why does Firefox 7 freeze when I paste a filename when printing to a file using Microsoft XPS Document Writer?

    This is more of a bug, and it doesn't seem to happen all the time.
    I like printing web pages to Microsoft XPS Document Writer (.xps) format. FF7 seems to freeze often when I paste a filename (usually from copying something, like the title, from the web page itself) after trying to print to a file using Microsoft XPS Document Writer. I think it may be that I wind up copying some special formatting (or maybe a line break) and that causes FF to freeze (I then have to force-close it using Task Manager). Just a bug that I hope the developers will note and fix.
    Another question, not quite related to the above, but is there a way to save an html web page to save only the text stuff? When I save to Text File in Firefox, I usually wind up with all the html crap in it too, when I just wanted the text content portion. TIA.

    Can you undo the system restore?
    Note that using System Restore can cause your Firefox installation to get corrupted because not all files are restored (only files in a white-list), so be cautious with using System Restore.
    *You may lose data in the Firefox profile folder like .js and .ini files pr profiles.ini can be affected.
    *You may need to (re)install software that was affected.
    In case you need to reinstall Firefox then you need to delete the Firefox program folder before reinstalling to make sure that all files get replaced.
    A possible cause is security software (firewall,anti-virus) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls

  • Using Standard text in scripts

    Hi all,
    I had a problem while printing standard texts in scripts.
    I Know how to print standard text if we have to print it from the begining of window using
    INCLUDE &T024E-TXADR& OBJECT TEXT ID ADRS LANGUAGE &EKKO-SPRAS& PAR
    But my problem id i have print it after a hard coded text like
    Delivery schedule: 'here i have to print the standard text'.
    can any one please help me out how to solve the problem
    Thanks & regards
    sreehari p

    Hi,
    Here's one my brother taught me - you can actually trick the system to accommodate this requirement.
    Ensure that you use 2 different paragraph formats in your INCLUDE statement, using the PARAGRAPH and NEW_PARAGRAPH clauses, ie.
    INCLUDE &T024E-TXADR& OBJECT TEXT ID ADRS LANGUAGE &EKKO-SPRAS& PARAGRAPH P1 NEW-PARAGRAPH P2
    Paragraph P2 (which will be used as the first line) should be created as having a Line Spacing value of 1 TW (1 twip) which is less than 1/1000th of an inch.  Also, set the Left Margin value to an offset which brings the text to the right of the Delivery schedule literal.
    Paragraph P1 (which will be used for all subsequent lines) should be set up as normal - ie. use the same paragraph format as that for displaying your "Delivery schedule:" literal.  If you need the text to be indented in line with the first line, then copy your existing paragraph to a new paragraph but set the Left Margin value to the same as that in P2.
    What this does is to output the first line of text indented by the margin after skipping 1 twip, giving the illusion that it's actually on the same line.  Since subsequent lines are output with a normal (or normal/indented) paragraph, that just follows with normal spacing on subsequent lines.
    Hope this makes sense.
    Regards,  Andy

  • Can I use photoshop text styles and photoshop actions with creative cloud photography?

    I'm really confused by this subscription pricing. If I purchase the $9.99/month, do I get the full desktop app of Photoshop and Lightroom? But I see on this page Products they list something called Photoshop CC that costs twice as much. How is that different from the Creative Cloud Photography?
    My main question is whether I can use photoshop text styles and photoshop actions with Creative Cloud Photography, since I just purchased a bundle that includes these and I want to be able to use them. But I'd also like to understand what comes with all of the various products and how they are different.
    My other question is how is Lightroom different from Photoshop? I have a sense of what you can do in Photoshop but I don't know much about Lightroom at all.
    One more question: the free trial -- is it limited in any way besides the time length? If I do that, will I get a clear idea of all that I will be able to do once I subscribe, or are the functions limited in the trial?
    I tried to just send an email to Adobe to ask these questions but apparently they are not interested in responding to emails from people who are not yet paying customers, so I was directed here. Thanks very much for your help!

    I always like to trot this bit about Bridge once in a while or in the voice of the "Two Bobs" from Office Space,
    "Can you tell us exactly what it is you do around here?"
    What Adobe Bridge does:
    Bridge is the coordinating hub of the Creative Suite. Synchronizing color management settings for all suite programs is done from Bridge, and can only be done from Bridge, to take one important use.
    Bridge displays actual thumbnails of many more file types than Finder or Explorer. It also allows instant play of sound or video files more readily than the native OS file managers.
    Bridge allows direct access to file metadata, to embed copyright information  and keywords where appropriate (e.g., for corporate logo vector and raster files). It also displays the fonts used in an InDesign file, the swatches in an INDD or AI and the output plates (including spot color plates) they use.
    When managing the assets for a design project, Bridge allows quick and simple sorting, rating and custom labeling (with color flash indications) of assets. I can rate images according to whether they are rejects, possibles, for review by client, or approved. The filters built into Bridge allow instant isolation of only the approved images or designs in a folder, only the rejects (for deletion) or only files with certain ratings, no matter how many files it contains. It recognizes aspect ratios, so if I only need a landscape or a 16:9 image in a folder of hundreds of images, I turn off the aspect ratios I don't need.
    Once filtered, the remaining visible files can be selected and copied, moved, or deleted without affecting the rest of the contents of a folder.
    Collections are a massively useful feature. One of my clients is a performing arts center, and in a season we turn out dozens of ads, flyers, brochures, web banners, playbills, billboards and other collateral using the same assets over and over. These assets are organized by artist and/or show on disk, but I set up each season's repeating assets as a Collection in Bridge, so that I just have to open the collection and drag and drop these assets into new INDD, AI, PSD, HTML (in Dreamweaver), FLA or AE projects without having to navigate from folder to folder picking up individual files.
    Bridge's Favorites is another place I stack frequently-accessed folders, such as stock photography, backgrounds, and top-level folders for active projects.
    Assets can be divided into subfolders, but a quick toggle of "Show items from subfolders" exposes all of the assets in a single view while maintaining their organization. I will typically keep AIs, PSDs, EPSs, stock photography and client images in separate subfolders within a project. When I'm ready to start pulling assets into an InDesign layout, I toggle this on and simply drag what I need into the layout.
    Bridge comes with Adobe Camera Raw built in, which is many times faster than using Photoshop to adjust jpegs or tiffs for things like tonal range, white balance, cropping, spotting and sharpening, and is non-destructive.
    One tremendously useful Bridge function for InDesign CS5+ users is the "Show linked files" feature, which opens all the linked files in a layout into a single view, regardless of where they are physically located. I often use this when doing alternative layouts from a client-approved mockup for a campaign, to be certain the same assets are used in each piece, or when creating a motion graphic or interactive piece for the campaign in After Effects or Flash.
    The batch and image processing scripts built into Bridge automate things like creating web-ready small jpegs from multiple images, renaming large numbers of files in place or by copying to an alternative location, creating sets of PSD, png, jpeg or other file types from an assortment of image files, and so on.
    Bridge is so much a part of my daily workflow that on my main workstation I have one monitor dedicated to it almost 100%. Bridge just sits open 24/7, ready for use. I would run at half speed without it, no question.

  • How to use Standard Text in ALV

    How to use Standard Text in ALV header part? Can you please help me by giving the answer?

    Hi ,
           You can read the Standard text using read_text function module and then print in LV header part.

  • How to use rich text?

    Hi All,
    I want dynamically to output in adobe print form some fields from a table in this way.
    Description:<b>Text1</b>
    <b>text2 text3</b>
    Description2:<b>Text2</b>
    Description3: <b>Text3</b>
    I want to use rich text but it does not work for me .
    Could anybody help me ?
    I appreciate any help.
    Regards,
    Ari

    I think you have to use floating filed.
    <i>Click inside the Static Text object in which you want to place the floating Text Field object.
    Place your cursor on the line where you want Designer to insert the floating Text Field object.
    Select Insert > Floating Field( from designer memu).
    To set the properties of the Floating Field, click the Floating Field marker inside the Static Text object, and then select options as needed. It is good practice to rename the floating Text Field object and specify the necessary binding.</i>
    in your case you have use 2 fileds , 1 for description , 1 for text.for 2nd field make bold in the properties.
    static text, description and text fields should be in subform.
    Inside static text filed,after binding it will appera as below.
    Message was edited by:
            pavan meda

  • Printing 2-up landscape pages in proper sequence

    I'm printing a 44-page pdf document to pdf file.
    To reduce length of printed version, printing 2-up landscape, auto-rotated and centered.
    If I send to file, then open, pages print in 2-1, 4-3, 6-5 sequence.
    If I send to file with pages 2-up landscape in reverse order, pages print from 44 down to 1, but all pages are correctly sequenced, i.e., odds on the left and evens on the right.
    What settings should I use to get pages sequenced 1-2, 3-4, 5-6 etc., reading from the front of the document?
    Jeff's in BAD need of help!

    Sounds like your ad is 8.5 x 11, with a full bleed.  Set up a document in InDesign for 12 x 18, and then place your InDesign files into the 12 x 18 document, keeping in mind that if the ad acutally does bleed, you want to select bleed bounding box in the place options.  You also need to arrange the 12 x18 document for a gutter.

  • Print different format files using java API

    Hi All,
    I need to print documents ( MS-DOC, PDF, Plain Text ) using Java API. I do not need window for configuring number of pages to be print etc etc.. Whatever the file specified should be printed.
    I checked with printerJob.print(); from java API and able to print simple text. I need to approach same for files of different formats.
    Any other API's ? How do i approach?
    Any help will be appreciated.
    Thanks,
    Praveen

    Which of the LiveCycle products are you looking at? (there is no Java API to Acrobat)

  • Problem in printing Chinese characters by using JavaPrintService

    Hi, I just develop a tool to print txt files by using Java Print Service.
    Everything seems to be good, but when the file contains Chinese character, it can't be print correctly.
    I tried to use the DocFlavor.Reader and DocFlavor.STRING, however all of them are failed.
    My code is below, please help me, thanks so much
    PrintRequestAttributeSet pars = new HashPrintRequestAttributeSet();
    // TODO:Printing is not correct because of the Chinese Encoding
    DocFlavor flavor = new DocFlavor.INPUT_STREAM("text/plain;charset=UTF-8");//DocFlavor.INPUT_STREAM.AUTOSENSE;
    PrintService defaultService = PrintServiceLookup.lookupDefaultPrintService();
    if(defaultService != null){
    Iterator<String> it = filename.iterator();
    while(it.hasNext()){
    shortname = it.next().toString();
    abstractPath = GlobalVar.SRC_DIRECTORY_PATH + shortname;
    File file = new File(abstractPath);
    if(file.exists()){
    try{
    DocPrintJob job = defaultService.createPrintJob();
    FileInputStream fis = new FileInputStream(file);
    //BufferedReader br = new BufferedReader(new InputStreamReader(fis,"UTF-8"));
    DocAttributeSet das = new HashDocAttributeSet();
    Doc doc = new SimpleDoc(fis,flavor,das);
    job.print(doc, pars);
    }catch(PrintException ex){
    Log.doLog("Print failed\t" + shortname, Log.ERROR);
    System.out.println(ex.fillInStackTrace());
    }else{
    Log.doLog("File can't be found: "+abstractPath, Log.ERROR);
    }else{
    Log.doLog("Can't find printer", Log.ERROR);
    }

    Everything seems to be good, but when the file contains Chinese character, it can't be print correctly.And how exactly did you determine that the character set in that file is UTF8?

Maybe you are looking for