IText & VerticalText

Vertical Text in PDF using <CFDOCUMENT>
I am using font tag in a CSS file to layout a table header
using vertical text.
In HTML, the vertical text looks fine. However, when I
convert the table to a
pdf using <cfdocument>, the vertical text is displayed
as horizintal text and
does not follow the css specified font family, color or size.
I'm trying to use the iTEXT class VerticalText to create the
text, but i'm having trouble understanding how to call the method.
I have created the object using
myObj.vertText =
createObject("java","com.lowagie.text.pdf.VerticalText");
Does anyone have ideas on how to use iText and call its
functions?
Thanks.

Hey, Its probably not worth it but I don't really know how
else to go about it.
MY users have a form matrix which they enter text into fields
and mark checkboxes against items. Some of the items are displayed
vertically so it all fits on to one page and then they produce a
PDF from it ..... probably doesn't explain it very well actually!!
Do you know how else I could get round this?

Similar Messages

  • How to construct checkbox in rtf document using iText?

    Hi fiends
    I am developing a rtf document usng iText api ,I am facing problem when i want to draw a check box in the document so is there any way using iText only to draw a checkbox in rtf document?Or iText doesn't allow construct checkbox?please suggest.An example will be appreciated.Thanks in advance.
    Regards soumyanil

    For your kind information this is a site that provides support for JAVA programming and JAVA Servlets related questions.
    You need some information regarding a third party API, so please dont hesitate to contact your vendor.
    The vendor URL: http://itextdocs.lowagie.com/
    The tutorial you need to learn before starting iText is http://itextdocs.lowagie.com/tutorial/
    All the best!

  • APEX and iText PDF generation

    Hi,
    Has any one used iText in apex to generate PDF documents in APEX. The reason for me to look for a solution to generate PDF documents like invoice, Purchase Order for different customer in different format. Since the online hosting companies have different reporting services like (JasperReport/Oracle BI publisher etc) it is a pain full procedure to have rtf and XML-FO. If I use iText within the PL/SQL procedure which will generate PDF document by supplying PDF form and XML data.
    In this case the client can create there PDF form which can be filled by XML data.
    Thank you.

    I had a look but seems like I have use command line to execute the process. You do.
    I want to generate from PL/SQL. My package does. Mind you -- I have to make use of a host command to perform the actual integration. When a process 'prints' to a PDF, it supplies the PDF form to be filled in, the specific fields to be filled in, and the values for the fields. I write these values out to an FDF file for the appropriate PDF form on the OS, then call PDFTK via a host command to integrate the blank PDF and the newly-created FDF into a 'filled' PDF form. I then email the completed PDF file to the user that requested it.

  • Using iText to generate a digital signature that can be signed in Adobe Reader

    I am able to create a digital signature in a pdf using iText.  Adobe Reader does not allow that digital signature to be signed.  Everything I have been reading suggests that I need to enabe Reader Usage Rights, but that requires using Adobe Pro.  I was hoping that I would only need Adobe Reader inorder to digitally sign the pdf, is that possible?

    Not without the required rights...

  • Arabic text in my web application using iText..

    Hey Guys,
    I'm using the iText library to produce PDF reports in my web application; platform (ADF 11g and Weblogic 10g). I'm having a problem with rendering arabic text on the page, is there a way to print arabic text outside of a PdfPTable ?? I need to print a simple text like the title of the report , the subtitle and so on... please guys I need an answer...
    Thanks in advance.
    AccadSoft

    gimbal2 wrote:
    sabre150 wrote:
    AccadSoft wrote:
    please guys I need an answer.To get answers about using iText I use "iText In Action, 2nd edition" by the prime author of iText - Bruno Lowagie.Classic way to make money - make the API free and sell the documentation. Also an honorable way to make money IMO.I was using iText before 2004 when the first edition of the book came out ( 4 years or so after the library was first introduced) and it was hard work. PDF is a very complex document format and just using the Javadoc does not really get you anywhere. There are many 'gotchas' in iText and most of the iText tutorials cover only the very basics and pretty much none of the 'gochas'. The book starts off with very simple examples that could be constructed from the Javadoc but then it does move on to the more complex issues. Worth every penny.

  • How to write special characters in PDF using iText

    How to write special characters encoded with UTF-8 in PDF using iText.
    Regards,
    Pandharinath.

    I don't know what your problem is but that's almost certainly the wrong question to ask about it. Java (including iText) uses only Unicode characters. (You may consider some of them to be "special" if you like but Unicode doesn't.) And when it does that, they aren't encoded in UTF-8 or any other encoding.
    So can you describe your problem? That question doesn't make sense.

  • Problem in Running a Webdynpro Application Which uses itext.jar

    Hi,
    I have created a Webdynpro DC which uses a DC called xxx_lib which contains the external JAR Files. (itext.jar etc)
    This JAR file is in my library path as well.
    I have added the lib_dc as used DC under the webdynpro DC.
    The Compilation and build went fine without any error. But when in run the Application Under ---> Content Administration --> Webdynpro , I am getting the following Error.
    The initial exception that caused the request to fail, was:
    <b>java.lang.NoClassDefFoundError: com/lowagie/text/Element
    Failed to create delegate .....
    (Hint: Is the corresponding DC deployed correctly? Does the DC contain the component?)</b>
    Please let me know if somebody knows the solution.
    Thanks and Regards,
    Sekar

    Hi Sekar,
    Please look into the link below.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7b8180e5-0601-0010-0c94-9bccb92de9c1
    Goto section 2.2.3.1 Defining Libraries Page No. 75
    It gives you the entire process of creating the library DC and referencing the same in your WebDynpro project.
    Hope this helps.
    Regards,
    Rekha Malavathu

  • Problem in merging large collection of PDF  in single pdf at a time-itext

    hi
    i am using itext library for PDF generation.My problem is ,when i merge the large number of PDFs which is already
    generated, in a single PDF ,i got 'Out of Memery' exceptions,but when i doing this with limited number of PDFs
    they are concated as a single PDF .so what shall i do to overcome Out of memory exceptions.because,our client wants to print the mass PDF ,which may have more than 1000 PDFs on a single merged PDF .if any possible,when i merge the single PDF with already merged PDF one by one at a time when it will be generated,how can i handle I/O streams to open one PDF at a time and merge with already generated PDF on the same time,and how can i append the generating PDF directly on already generated PDF using streams
    This is my java code:
    package javaexamples;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.List;
    import com.lowagie.text.Document;
    import com.lowagie.text.pdf.BaseFont;
    import com.lowagie.text.pdf.PdfContentByte;
    import com.lowagie.text.pdf.PdfImportedPage;
    import com.lowagie.text.pdf.PdfReader;
    import com.lowagie.text.pdf.PdfWriter;
    public class ConcatPDFs {
              public static void main(String[] args) {
              try {
              List pdfs = new ArrayList();
              Document document     = new Document();
              OutputStream output = new FileOutputStream("E:\\templates\\out\\Merged PDF\\merge.pdf",true);
              PdfWriter writer      = PdfWriter.getInstance(document, output);
              pdfs.add(new FileInputStream("E:\\templates\\out\\07J439HF_FINAL_EVALU.pdf"));
              pdfs.add(new FileInputStream("E:\\templates\\out\\07J440HF_FINAL_EVALU.pdf"))*;*//it may be increased over thousand paths.
              ConcatPDFs.concatPDFs(document,writer,pdfs, true);
              output.flush();
              document.close();
              output.close();
              } catch (Exception e) {
              e.printStackTrace();
              public static void concatPDFs(Document document,PdfWriter writer,List streamOfPDFFiles, boolean paginate) {
              try {
              List pdfs = streamOfPDFFiles;
              List readers = new ArrayList();
              int totalPages = 0;
              java.util.Iterator iteratorPDFs = pdfs.iterator();
              // Create Readers for the pdfs.
              while (iteratorPDFs.hasNext()) {
              InputStream pdf = (FileInputStream)iteratorPDFs.next();
              PdfReader pdfReader = new PdfReader(pdf);
              readers.add(pdfReader);
              totalPages += pdfReader.getNumberOfPages();
              // Create a writer for the outputstream
              document.open();
              BaseFont bf = BaseFont.createFont(BaseFont.HELVETICA, BaseFont.CP1252, BaseFont.NOT_EMBEDDED);
              PdfContentByte cb = writer.getDirectContent(); // Holds the PDF
              // data
              PdfImportedPage page;
              int currentPageNumber = 0;
              int pageOfCurrentReaderPDF = 0;
              Iterator iteratorPDFReader = readers.iterator();
              // Loop through the PDF files and add to the output.
              while (iteratorPDFReader.hasNext()) {
              PdfReader pdfReader = (PdfReader)iteratorPDFReader.next();
              // Create a new page in the target for each source page.
              while (pageOfCurrentReaderPDF < pdfReader.getNumberOfPages()) {
              document.newPage();
              pageOfCurrentReaderPDF++;
              currentPageNumber++;
              page = writer.getImportedPage(pdfReader, pageOfCurrentReaderPDF);
              cb.addTemplate(page, 0, 0);
              // Code for pagination.
              if (paginate) {
              cb.beginText();
              cb.setFontAndSize(bf, 9);
              cb.showTextAligned(PdfContentByte.ALIGN_CENTER, "" + currentPageNumber + " of " + totalPages, 520, 5, 0);
              cb.endText();
              pageOfCurrentReaderPDF = 0;
              } catch (Exception e) {
              e.printStackTrace();
              } finally {
                   System.out.println("SUCCESS");
              /*try {
              if (outputStream != null);
              //outputStream.close();
              } catch (IOException ioe) {
              ioe.printStackTrace();
    thanks in advance
    regards
    Oasisdeserts

    thanks for your reply,
    i already tried open and close the output stream and Input Stream to read and write every PDF,but i conflicted that that last PDF only is written in the final merged PDF.so what can i do to this every time the new PDF is to take to merge with already merged PDF.
    i want know about CODE TAGS
    As per your succession,
    for(int i =0 ;i<200;i++){
                   output = new FileOutputStream("E:\\templates\\out\\Merged PDF\\merge.pdf",true);
                   document.open();
                   String value     = "E:\\templates\\out\\07J439HF_FINAL_EVALU.pdf";
                   ConcatPDFs.concatPDFs(document,writer,value, true);
                   output.flush();
                   document.close();
                   output.close();
    thanks
    regards
    Edited by: oasisdesert on Oct 22, 2008 3:03 AM

  • How To Read RTF file in JAVA?  Using  iText?

    How To Read RTF file in JAVA?  Using  iText?.....
    import java.io.*;
    import com.lowagie.text.*;
    import com.lowagie.text.rtf.*;
    public class RTF3 {
    public static void main(String[] args) {
    // System.out.println("This example generate a RTF file name Sample.rtf");
    // Create Document object
    Document myDoc = new Document();
    try {
    // Create writer to listen document object
    // and directs RTF Stream to the file Sample.rtf
    RtfWriter2.getInstance(myDoc, new FileOutputStream("Sample.rtf"));
    // open the document object
    myDoc.open();
    // Create a paragraph
         Paragraph p = new Paragraph();
         p.add("Helloworld in Rtf file..amazing isn't");
         // Add the paragraph to document object
    myDoc.add(p);
    catch(Exception e) {
    System.out.println(e);
    //close the document
    myDoc.close();
    Exception in thread "main" java.lang.NoSuchMethodError: com.lowagie.text.Rectangle.width()F
         at com.lowagie.text.rtf.document.RtfPageSetting.rectEquals(RtfPageSetting.java:433)
         at com.lowagie.text.rtf.document.RtfPageSetting.guessFormat(RtfPageSetting.java:362)
         at com.lowagie.text.rtf.document.RtfPageSetting.setPageSize(RtfPageSetting.java:341)
         at com.lowagie.text.rtf.RtfWriter2.setPageSize(RtfWriter2.java:248)
         at com.lowagie.text.Document.open(Unknown Source)
         at view.RTF3.main(RTF3.java:23)
    CAN you HELP me?

    import com.lowagie.text.Document;
    import com.lowagie.text.rtf.parser.RtfParser;
    import java.io.FileInputStream;
    String inputFile = "sample.rtf";
    Document document = new Document();
    document.open();
    RtfParser parser = new RtfParser(null);
    parser.convertRtfDocument(new FileInputStream(inputFile), document);

  • I lost a really important file (an iText Express document) randomly and then one day, a "recovered file" folder popped up and I assume it has to do with that, but the file just contains a doc with a bunch of coding. What do I do with that? HELP!!!

    As the title question states, I lost a really important file with iText Express. I've been using iText Express for a year or two now because it's just the one application I downloaded for writing and saving documents. I was working on one for a few months and randomly one day last month, when I went to open it to resume editing my work, the file was gone! I searched my whole laptop and trash. Then one day, a "Recovered Files" folder popped up in the area my file used to be, so I assumed that was the file I lost being recovered and I felt relieved. But when I opened the folder, the document inside was a "SoftwareMap" document with a bunch of coding written in it. I don't understand what I'm supposed to do with that or how it's going to help me recover my file?!? I lost SO much work!!! If anyone has ANY idea what to do, how this happened, or if the coding is supposed to help me recover my file, PLEASE help!!!

    No, I already tried looking at that. The file that recovered was not in the trash, it appeared in my documents folder. I opened it up and inside was an iText Express document with coding. Then inside of there, was and then and this "SoftwareMap" document contained a bunch of coding and symbols and words.

  • PDF created using Java iText package - Text not editable and not displaying font properties on Acrobat

    Hi,
    I have an issue in editing the text and viewing the font properties of a text region on a PDF created using Java iText package.
    I use Adobe Acrobat 9 Pro Extended and the option Tools -> Advanced Editing -> TouchUp Text Tool.
    The strange behaviour is that, I have 2 PDFs created out of the same base PDF and text added via Java iText package with the same Text, Font and other properties.
    One of the PDF has the text region editable on Acrobat but the other one has the text region which is not editable.
    But both the PDFs are editable via Adobe Illustrator.
    I have attached both the PDFs for your reference
    PDF_Editable.pdf - Editable on Acrobat
    PDF_Not Editable.pdf - Not Editable on Acrobat
    Any help or insight to find out the difference/issue with the PDF which is not editable via Acrobat would be appreciated.
    Thanks in advance.
    Regards,
    Madhusoodhan Henryraman

    You don't have direct control of the leading of a multiline text field. A common approach is to control the background color of the field with JavaScript since the lines are not really needed when the field is used in Reader/Acrobat. They may be useful when using the form by hand. For more information, see the posts by Max in this topic: http://acrobatusers.com/forum/forms-acrobat/how-do-i-use-multi-lined-text-fields-over-prin ted-line-area-existing-form

  • Header and Footer for PDF with images using itext.jar

    HeaderFooter class was available in itext.jar ,I tried using this class with PDFtemplate and Phrase i am trying to put the image on the header and footer ,however the image comes perfectly for the first page ,its not applicable for the second or continuous page, is it possible to have the images in header and footer?
    Regards,
    Venkateswaran

    Questions about third-party APIs should be asked in the forum/newsgroup specific to that API. These forums are for questions relating to the API as provided by Sun.
    Go find an iText forum.

  • Problem in opening PDF files using Reader 8 when created with iText 2.1.3

    We are facing problem in using IText version 2.1.3. We are using Acrobat Reader 8.1 for viewing the PDF documents. In our Shell program we are splitting and merging the pdf documents using IText. The pdf document works correctly and is readable for documents with one page while it fails for documents with multiple pages.Also please note that it works fine with the older Arcobat reader version say version 7.0 and below but since business has migrated to acrobat higher version we expect IText to work in sync.
    We have already raised a bug with the iText and got the information from them stating that the problem is due to the over nesting of XObjects, which has a threshold value of 50 and was discarded in earlier versions but got flagged in Acrobad Reader 8. Also note that we have reported a bug with the adobe development team.
    We tried working with other Java PDF tools (jPDFProces), to manupulate the pdf files but were facing the same problem. Hence we understand that the problem is with Adobe Reader 8 as the manupulated pages are being viewed in Adobe Reader 7, but fails to read in Adobe Reader 8.
    Kindly provide us with a solution.
    Thanks and Regards,
    Kiran R
    Sonata software.com
    www.sonata-software.com

    Conte Pietro
    [email protected]
    Buon Giorno
    Ho un problema riguardo Adobe Reader.
    La vecchia versione Adobe 8.1.1 non mi apre più i files in formato PDF.
    Ho provato ad installare l'ultima versione Adobe 9 , arriva fino ad un passo dal completamento ma non riesce a terminare. mi da il seguente errore:
    ERROR 1714 The older version of Adobe Reader 9 cannot be removed.
    Contattare l'assistenza!
    Ho cancellato tutti i riferimenti Adobe dal DeskTop, dal Pannello di Controllo e dal FILES Programmi, ma niente!
    Vi sarei grato se potete mandarmi un dettagliato help per riuscire a completare l'installazione.
    Grazie
    [email protected]
    [email protected]

  • URGENT:PLEASE TELL ME HOW TO RUN BOTH "ITEXT & MYFACES1.0" TOGETHER?

    URGENT: HELP PLEASE. ITEXT AND MYFACES1.0.9 COMBINATION USE BLOCKS THE PDF GENERATED ITEXT.
    We are using ITEXT for PDF report generation in JSF web appliaction, We needed to implement the Fileupload, we tried both MYFACES1.0.9 and TOMAHAWK, both ways we also got the file uploading working. For this we needed to add the filter in the web.xml file ( <filter-name>ExtensionsFilter</filter-name> as below). NOW by doing this, it BLOCKS THE PDF OUTPUT OF THE ITEXT and the result in sumthing like corrupted PDF is spitted in the browser (%PDF-1.4 %âãà Ó 2 0 obj <>stream ÿØÿà JFIF� �`�`�ï¿................................................)
    When i remove the MYFACES1.0.9 only then the good PDF output is viewable in the BROWSER.
    PLEASE TELL ME HOW TO RUN BOTH ITEXT(for pdf report) and MYFACES1.0.9 (for fileuploading) TOGETHER?????
    ========================
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee">
    <description>Empty web.xml file for Web Application</description>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.faces</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>35</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <filter>
    <filter-name>ExtensionsFilter</filter-name>
    <filter-class>
    org.apache.myfaces.component.html.util.ExtensionsFilter
    </filter-class>
    <init-param>
    <param-name>uploadMaxFileSize</param-name>
    <param-value>10m</param-value>
    </init-param>
    <init-param>
    <param-name>uploadThresholdSize</param-name>
    <param-value>100k</param-value>
    </init-param>
    </filter>
    <filter-mapping>
    <filter-name>ExtensionsFilter</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    </filter-mapping>
    </web-app>
    ========================

    calm down!
    You always have the option of dumping the file uploading component and just using the Apache FileUpload API in a servlet - then you'll have full control over what happens when without any additional configuration needed.

  • How to display the Image in PDF report by using iText Report

    Hi
    Im trying to display the image which is very big one.
    This is my code
    Document document=new Document();
    PdfWriter.getInstance(document,new FileOutputStream("imagePDF.pdf"));
    document.open();
    Image image = Image.getInstance ("1.bmp");
    document.add(new Paragraph("Images in PDF"));
    document.add(image);
    document.close();
    But the image "1.bmp" is displayed partially. Its not spanning to the next page.
    Can anyone help me to solve this one?
    Thanks in Advance
    dhilip

    Do you actually want the image to span multiple pages? I am not sure that will be possible without splitting the image; the itext mailing list would be the place to ask.
    You could make the the page size big enough for the image using Document.setPageSize()

Maybe you are looking for

  • Can't Install Adobe Reader

    I had Adobe Reader Installed and it worked fine.  Then an update failed and Reader disappeared.  I tried to download it and reinstall it, but it gives me a message that it doesn't have enough permission to access Activex file, and asks me to log in a

  • Added new file but type still won't open in CS5

    I would like CS5 to be able to open .m3u files as text files. I have added M3U into the Extensions.txt in my C:\Documents and Settings\[user]\Applications Data\Adobe\Dreamweaver CS5\en_US\Configuration\Extensions.txt, and the C:\Program Files\Adobe\A

  • Attachments not visible in Yahoo mail under Firefox 18.

    Running under Firefox 18, attachments to received e-mails on Yahoo mail are not visible, as they used to be (and are under Internet Explorer). On downloading the e-mails (to Thunderbird) the attachments are there as expected.

  • Ipad 3 is syncing only one way with outlook 2010

    I am seeing calendar items that I add in Outlook 2010 added to the Ipad. However, appointments added in Ipad are not being added to Outlook. I have not checked contacts (All were added to the Ipad).But I have not tried adding a new contact yet. Is th

  • Finding number of lines in a program/function module

    Hi Expets, I would like to know is there any way to find the number of code lines in a ABAP program/function module. Additionally, can i extend this to a package such that the utility will find the number of codelines in all the programs/function mod