Itext and CFMX7

We developed a cfc in order to use itext and generate pdf
forms on the fly on a CF6.1. We have now setup a new server with
CFMX7 and promoted our applications on CF7.0 The cfc no longer
seems to work under CF7. Are there any known issues with regard to
itext or tweaks that need to be made? I noticed that a new class
shipped with CFMX7. Trying to install a refactored itext.jar did
not solve our problem. The pdf file is generated but data is no
longer passed.
This is the cfc we use:
http://www.reactivevision.com/coldPDF.txt

EmmanuelRuiz wrote:
> We developed a cfc in order to use itext and generate
pdf forms on the fly on
> a CF6.1. We have now setup a new server with CFMX7 and
promoted our
> applications on CF7.0 The cfc no longer seems to work
under CF7. Are there
"no longer seems to work" means? what version of itext were
you using before?
> noticed that a new class shipped with CFMX7. Trying to
install a refactored
> itext.jar did not solve our problem. The pdf file is
generated but data is no
that should actually work but will break all the cfdocument
stuff.

Similar Messages

  • About Setup the iText and java

    Hi !!
    I need to set up the iText BUT I try and try I still can not get it done.
    I post This topic hope that some one will help me .
    where should i put me jar file to ??
    where to set the classpath and what to set ??(Please give me example)
    Where should I put my java file if I using the Textpad to compile the java file ??
    where can i find more information about the iText ??(url)
    Please help me .

    The web site did not give much information about setup the iText.
    What i need is the step to setup the iText.
    Thanks....
    is there any forum about iText ??

  • IText and setExtraMargin

    I've been going around and around on trying to get a properly
    formatted flat pdf created with my data. I have to say that Adobe's
    ability to actually format a multi-line field as it was presented
    when it was editable is frustrating. CFMX8, pdfTK and iText all
    have the same problem of aligning the data in a multi-line field to
    the top when the pdf is flattened. activePDF is the only app i've
    found that does the formatting correctly, but they have SO many
    other issues with correctly populating a complex form that I'm back
    to trying to make something like iText work correct.
    I found this function for iText called setExtraMargin(); and
    it works perfect with the values 0, 6 to jog the text down. Now my
    problem is how to set this dynamicly based on if the the field is
    multi-line or not.
    I found this bit of code, but I'm not able to figure out how
    to convert this to <cfscript>. I need to be able to loop over
    something like this for each form key/value pair I'm inserting back
    into the pdf template.
    Any help would be great.
    I'm currently testing on MX8 if it makes a difference. Altho
    i will eventually trying to make this work on a cf4.5.1 server.
    --Dennis--

    > but need to chk each field for the FF_Multiline value
    for that field
    No. I think PdfFormField.FF_MULTILINE is a constant value
    used to represent that a field
    is multi-line.
    Looks like you extract the field's setting into a variable
    named "n" here:
    PdfNumber n = (PdfNumber)merged.get(PdfName.FF);
    The value is then compared to the constant
    PdfFormField.FF_MULTILINE. If the values are equal it means the
    field is multiline.
    if (n != null && (n.intValue() &
    PdfFormField.FF_MULTILINE) !=0)
    af.setExtraMargin(0, 6);

  • Servlet and iText pdf creator

    Hi,
    I have seen that all examples using iText and servlets send the pdf through the browser by using:
    response.setContentType("application/pdf");
    PdfWriter.getInstance(document, response.getOutputStream());
    I would need that besides send that info, the servlet should store a pdf file on the local system where the web server is installed. Is that possible?
    Could you please attach a full example code?
    Thank you in advance.

    If you want to send output to two simultaneous output streams (one for the browser and the other to save the PDF in the server's filesystem), then the following may help:
    final public class Tee extends OutputStream {
        // Class Variables //
        /** First output stream to write to */
        final private OutputStream first;
        /** Second output stream to write to */
        final private OutputStream second;
        // Constructors //
         * Creates a Tee that will output to the two streams specified.
         * @param     first          First stream to write to
         * @param     second          Second stream to write to
        public Tee(final OutputStream first, final OutputStream second) {
            super();
            this.first = first;
            this.second = second;
        // Public Methods //
         * Writes the specified byte data to both streams.
         * @param     target          Data to output
         * @throws     IOException
         * @see          OutputStream#write(int)
        final public void write(final int target)
             throws IOException {
            first.write(target);
            second.write(target);
         * Flushes the data buffer of both streams.
         * @throws      IOException
         * @see          OutputStream#flush()
        final public void flush()
             throws IOException {
            first.flush();
            second.flush();
         * Closes both streams.  If an exception occurs when the first stream is closed, the
         * second stream will be closed before the exception is thrown.
         * @throws     IOException
         * @see          OutputStream#close()
        final public void close()
             throws IOException {
            IOException thrown = null;
            try {
                first.close();
            catch (IOException e) {
                thrown = e;
            try {
                second.close();
            catch (IOException e) {
                thrown = e;
            if (thrown != null) {
                throw thrown;
    }- Saish

  • IText MMS Messaging and Data HORRIBLY Slow the past 2 or 3 months.

    AT&T is my carrier and I have unlimited data from a grandfathered plan. Last month I kept getting data warning messages on my phone saying I was near the end but it's umlimited.
    It takes about 6 minutes to send a picture through iText and my data speeds are just awful if I am not on Wifi.

    Blackthidot,
    Have you tried plugging your phone into the computer and running an update?  My iphone used to freeze up all the time, but I found that running updates always solved the problem.
    Hope it works out

  • 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.

  • 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.

  • Adding a link in PDF using itext

    I am adding a link in PDF using itext and opening the link from the final created pdf using app.launchURL and app.getURL
    it works fine on windows XP but does nothing on MAC OSX /IOS

    Hi Lynn
    And here I was about to suggest you review the link below.
    Silly me.
    Click
    here to read the article
    Sincerely... Rick

  • 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?

  • Problem with iText pageEvent.

    I am creating a PDF document using iText and writing some tables to it.
    On page end event of PDFWriter I am creating footer. method :onEndPage(PdfWriter pdfwriter, Document document)
    My problem is that this event is getting called twice.
    so some tables are cut even if whole page is available and they are being written to new page.
    Can anybody pls help me why this happens.?

    Srikant,
    If the code compiled OK and failed with this error at runtime then perhaps the JAR file containing com.trend.iwss.jscan.appscan.runtime.PolicyProps Class is older than the one you compiled the code with.
    You could locate the .JAR file using the Class Finder tool, and deploy it as part of your code as a library.
    Cheers,
    Steve

  • Merge 2 pdf's dynamicly with iText

    I would like to merge two pdf's with iText. There is something special with the merging because the first pdf is dynamicly created and does not exists on the disk. I would like to merge it with an existing pdf (on my hard-disk), but the result of the merge must be dynamic too.
    I know there is a possibility to do this with iText, but I have no idea how I have to do it. The first (dynamic) pdf is created with iText too and it works fine.
    Thanks,
    Jiebke

    iText has a sample application that merges two PDFs into another. If you examine that code and fiddle around a little bit, you should be able to figure out how to do what you want.
    What you are trying to do is not that difficult with iText, and I'm sure you are up to the challenge!
    - K

  • PDF and tables (10Dukes)

    Hi,
    I have big problem.I'm servlet that will be generating pdf document that contain large table ( with many colums and rows). It is important that the generated PDF will be printer friendly, with no data lost, and columns and rows not broken in the middle. If there is not enough room for all the columns in the printed page I want that the next page will print the columns that couldnt fit in the previous page. The same with rows.
    Please tell me, which library should I use, and how:
    iText ( but I think there is only manual column split)
    fop (http://marc.info/?l=fop-user&m=109395969429242&w=2)
    anything else?
    Is it possible?
    Please help

    I use iText and it works fine for me.
    For the rows, it's done automatically. See http://itext.ugent.be/library/com/lowagie/examples/objects/tables/AddBigTable.java
    Create your document as follows: Document document = new Document(PageSize.A4.rotate(), 2, 2, 2, 2); to fit the page size..
    For the columns, I split the table into many ones. Every single table deals with a predefined columns range.
    the number of columns per table depends on the the width of the cells you have to insert into your PDF document.

  • Using arabic in iText

    Hello all
    I want to generate a pdf document that contains arabic content. What should i use in the xml to b converted into pdf so that i get the arabic content in the pdf file?
    Thanks & Regards
    Gurpreet Singh

    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 verify PKCS#7 signature and timestamp present in PDF

    Hi,
    I have certified the PDF and embedded the digital signature with timestamp using iText and Bouncy Castle API's. Can anybody tells me that how to verify the PKCS#7 digital signature, certificate chain and timestamp present in the PDF?
    thanks
    Gurpreet Singh

    I think you're pretty much on your own for this. You can probably eliminate
    some files based on exstension. For the rest you might want to read the
    first 1K and check whether it's all ASCII and whether the first line looks like
    a mail header line (e.g., starts with an alpha character and contains a colon).

Maybe you are looking for

  • Problems installing Snow Leopard on my MacBook Pro

    I'm having problems installing Snow Leopard on my MacBook Pro.  Help!  The installer log says the following: Nov 26 16:31:21 localhost LCA[79]: Folder Manager is being asked to create a folder (cach) while running as uid 0 Nov 26 16:31:21 localhost L

  • PDF viewer doesn't work in FF 36.0.4 for Mac

    Macbook Pro with Yosemite and FF 36.0.4: Built in PDF viewer no longer works. Clicking on PDF links in search engines does not bring up the built in viewer. Restoring FF 35 restores the PDF viewer.

  • [SOLVED]Can't install Virtualbox-guest-utils[SOLVED]

    sudo pacman -S virtualbox-guest-utils resolving dependencies... looking for conflicting packages... error: failed to prepare transaction (could not satisfy dependencies) :: catalyst-utils: requires xorg-server<1.17.0 What to do ? Last edited by heldi

  • Can't access any Tunes in the iTunes library

    Windows7, iTunes10, iPad2 when I search for tunes by artist name Neil Diamond or Celine Dion I get not a single song hit.  "Celine Dion" gave me only iPhone Apps and Podcasts, but not a single TUNE!

  • Help with Internet explorer

    HI I am trying to log into my new email work account from home. After many failed attempts I was told that the email does not support safari and to try IE (internet explorer) I must have an old version every time I try to use my version of IE my OS u