Generate PDF with itext in PL/SQL

Hello

I am generating some PL/SQL PDF using itext. I loaded iText - 5.0.4.jar, but found a few invalid javaclass, after going through a lot of forums I found some suggestion that I need to load a jar file more so I loaded the
loadjava - < user > / < pw > bcmail-jdk14 - 147.jar
loadjava - < user > / < pw > bcprov-jdk14 - 147.jar
then again loaded iText - 5.0.4.jar, but the result is the same.
I use oracle DB 11.2 on 64-bit Windows.
I also tried with bcprov-jdk15on - 147.jar and bcmail-jdk15on - 147.jar
because the version of java database is
Java version "1.5.0_17.
Java (TM) 2 Runtime Environment, Standard Edition (build 1.5.0_17 - b04)
Java for 64-bit Server VM (build 1.5.0_17 - b04, mixed mode)

need help to solve this problem. Please let me know if you need more information. Thnax

I have tried with - genmissing - v - r but had the following problems.
What authorization I give to load jar files also I want to drop the file jar to do a fresh charge, but dropjava gives file not found error.

jump: com/itextpdf/text/pdf/hyphenation/CharVector of class
resolution: com/itextpdf/text/pdf/standard/standard class
error: com/itextpdf/text/pdf/standard/standard class
ORA-29534: referenced object SAMPACC.com/itextpdf/text/pdf/BaseFont could not
t be resolved
resolution: com/itextpdf/text/pdf/hyphenation/HyphenationTree of class
error: com/itextpdf/text/pdf/hyphenation/HyphenationTree of class
ORA-29534: referenced object SAMPACC.com/itextpdf/text/pdf/hyphenation/Simpl
ePatternParser could not be resolved
jump: class com/itextpdf/text/pdf/hyphenation/TernaryTree$ iterator$ Item
jump: class com/itextpdf/text/pdf/hyphenation/TernaryTree$ iterator

Error creating java, security, interfaces, ECPublicKey class
ORA-29545: Malformed class: user attempted to load a class (java.secu
rity.interfaces.ECPublicKey) in a small set. The authorization may be part
d using dbms_java.grant_permission (, LoadClassInPackage...
ORA-06512: at line 1

The following is not
class java, security, interfaces, ECPublicKey: creation (failure)
output: failure occurred during treatment

Published by: pkpanda on January 9, 2013 18:01

Tags: Database

Similar Questions

  • How well Adobe to convert PDF to DOCX when the PDF file is only a LATEX generated PDF with a lot of equations.

    I create a lot of Latex documents that automatically export to PDF. I am interested in getting a DOCX format to help convert adobe PDF to docx, but there is no way to test this, is it good for Latex PDF with lots of equations?

    Unlikely that any use at all, I think. The PDF is not aware that it contains equations: only lines, symbols, fonts of specific placement. Go to the Word could preserve this in the form of a graph cannot be changed, but it's probably you leave nothing usable.

    Since nearly 20 years people have said. "I need to convert from X to Y." Can I convert X to PDF and PDF to y. work! "In fact, it is almost always the worst possible way to work.

    Maybe someone has created a tool for direct conversion.

  • Generate a pdf with pages back, that I can do?

    Hi, I am designing a book in indesign cs6, I need to generate a PDF with pages back, that I can do?

    If you want to reverse the page order you can use this free tool, I developed: Scripts Adobe custom: Acrobat - reverse order of Page (FREE)

  • PDF with BI Publisher configuration

    Hello

    I had a question about the configuration of the print server to 4.1 APEX or say that any version...
    As said, to activate PDF generation one must configure the print server. It can be done using BI using URL link/xmlpserver/convert xmlpserver and providing other details like address, hostname and port.

    So I was wondering how authentication takes place on the side BI xmlpserver? Or is it as a treatment for any request that is received on the/xmlpserver/convert?

    Note that I have different database for APEX and BI.

    Thank you!

    Hello

    There are three different ways by their SUMMIT to generate PDF documents, you can use the print option of conventional reports, interactive reports printing option, and you can use report queries (which can be found in the shared components). You condition is better filled by using queries to report, because the report queries allow you to include multiple SQL statements, i.e. multiple result sets in a single PDF document. So what you would do is create your page with several traditional or interactive reports, then do NOT print on these reports individually, but rather obtained for components that are shared-> report queries and define your query to report it (with several SQL statements). While you use the plugin word of BI Publisher to create your presentation / model, download the RTF and associate with the query for your report. And then, as a stage final, you create a "print" button on your report page and select your query report as the target for this button. If you use filters, - where clauses, etc. in the parts of your report, you can use the same clauses - where in your report query, and your reference variable to filter via the bind syntax elements. And of course this would require you bind a report defined in BI Publisher, you can continue to set everything inside the APEX.

    Kind regards
    Marc

  • Questions PDF with Microsoft Publisher 2016

    I produced a newsletter since early June 2016 using Microsoft Publisher Windows 10. It prints perfect and the PDF file printed perfectly until yesterday.   Now, if I import an image with a white background and click the new color, and then select the transparent background color option to have the graphic image, the background looks perfect on screen. When I save the file as a PDF, the image retains the white background. What is happening and how this problem can be solved? All the world has started having this problem?

    [Ask in the correct forum allows... Left non-technical Forum Lounge for an Acrobat forum... MOD]

    How do save you the document in PDF format? Adobe provides a PDFMaker for MS Publisher in some time, so it is very likely that you are using the generator PDF from Microsoft. In this case, you must ask a specific forum for MS Publisher Help. We don't know anything about how Publisher creates a PDF file. Try here for example: Microsoft Community

  • Save PDF with unprintable fields

    Hi guys

    I created a PDF with some calculations with adobe acrobat pro (10.1.16). Some fields are visible but unprintable. My problem is, that the functions save as file pdf with the print function doesn't work any more (Mac User).  With this feature, I could save my file in pdf without this fields. Is there another solution to generate a PDF without this unprintable fields?

    Thanks for the help, Elio

    It can be done with a script, but I think you can also do it with the built-in commands. There is a command to show/hide fields and there is a command to execute a menu item where you can select file - save as.

  • PDF with dynamic name

    Hi all

    I have an old billing software that generate a large number of prints, I would transform these prints in PDF with printer virtual adobe. But I would like the name of the file to be dynamic, something like date + user + counter.pdf. PDFCreator can do this work but recently give me much of a problem.

    Is it possible to make this work with adobe? If so what version I have to buy?

    Thank you

    Luca

    Hi Luca,

    It is possible to create several files with Action and the file name can be the original file from which it was created. It's something you can do with Acrobat Pro DC application.

    Thank you

    Abhishek

  • How to generate PDF and CHM of the command line files in windows?

    I'm trying to set up a PC to build certain documents during the night. I was looking for a way to get from framemaker to generate PDF and CHM files through a command line in windows? How this is done with FrameMaker 12

    Thanks for the help

    Alex

    I have the pdf part of this work now. Make a jsx which generates the PDF file via the doc. Save(). And when the pdf file is generated the script then shut down of FrameMaker via the application. Close method.

    I then just copy the script in FrameMaker autorun dir and start FrameMaker to get the pdf genenerated.

    Now, I'm trying to do something with the chm filegeneration. But I can't find anything on how to get FrameMaker to make the extend script CHM files. Is there anyone who have some good places to look for that?

    Thanks for the help

    Alex

  • Cannot generate PDFs RH8

    RH8 is capable of generating PDF files? I tried this: open a project, and then file > Generate > PDF (grayed out). See photo:

    pdf.png

    Hold on, you do not have to have Acrobat Pro. The PDF module provided with RoboHelp is sufficient.

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

  • Try adding a bookmark to existing PDF using iText

    I copied the code I put on cfsearching for the concatenation of PDF files and all existing bookmarks ( http://cfsearching.blogspot.com/2007/12/getting-started-with-itext-part-17.html ), bought the book of iTextinAction, but am stuck when you try to add a new bookmark. I get the message " "

    java.util.ArrayList cannot be cast in java.util.HashMap.

    I think I'm not add my own bookmarks "custom" to the list of existing bookmarks correctly. I tried to change the list of existing bookmarks for an explicit vector (that was how the example was written) in a table instead, but still have this problem when I try to close my document. Here is the code that I modified. I'd appreciate any help. I'm not a Java programmer and am really struggling to understand how it works and how to make changes.

    <cfscript>
      savedErrorMessage = "";

      // cfSearching: All file paths are relative to the current directory
      fullPathToOutputFile = ExpandPath("./Concatenated.pdf");
      arrayOfInputFiles = arrayNew(1);
      arrayAppend(arrayOfInputFiles, ExpandPath("./Version control.pdf"));
      arrayAppend(arrayOfInputFiles, ExpandPath("./iTextinAction,SecondEdition.pdf"));
      try {

          pageOffset = 0;
          PdfReader = createObject("java", "com.lowagie.text.pdf.PdfReader");
          SimpleBookmark = createObject("java", "com.lowagie.text.pdf.SimpleBookmark");
          // cfSearching: Internally CF stores arrays as Vectors. So I chose to use an explict vector
          // cfSearching:  here, but you could use an array and CF array functions instead
          allBookmarks = createObject("java", "java.util.Vector");

           outlines = arrayNew(1);
         arrayAppend(outlines, 'Pirate Jack');

          for ( fileIndex = 1; fileIndex LTE arrayLen(arrayOfInputFiles); fileIndex = fileIndex + 1) {
              // we create a reader for a certain document
              reader = pdfReader.init( arrayOfInputFiles[fileIndex] );
              reader.consolidateNamedDestinations();
              // we retrieve the total number of pages
              totalPages = reader.getNumberOfPages();
              bookmarks = SimpleBookmark.getBookmark(reader);
              if (IsDefined("bookmarks")) {
                  if (pageOffset neq 0) {
                      SimpleBookmark.shiftPageNumbers(bookmarks, javacast("int", pageOffset), javacast("null", 0));
                  }
                  allBookmarks.addAll(bookmarks);
              }

              pageOffset = pageOffset + totalPages;

              if (fileIndex EQ 1) {
                  // step 1: creation of a document-object
                  document = createObject("java", "com.lowagie.text.Document");
                  document = document.init( reader.getPageSizeWithRotation( javacast("int", 1)) );
                  // step 2: we create a writer that listens to the document
                  outStream = createObject("java", "java.io.FileOutputStream").init( fullPathToOutputFile );
                  pdfWriter = createObject("java", "com.lowagie.text.pdf.PdfCopy").init(document, outStream);
                  // step 3: we open the document
                  document.open();
               }
               // step 4: we add content
               for (pageIndex = 1; pageIndex LTE totalPages; pageIndex = pageIndex + 1) {
                    page = pdfWriter.getImportedPage(reader, javacast("int", pageIndex) );
                    pdfWriter.addPage(page);
               }

               formFields = reader.getAcroForm();
               if (IsDefined("formFields")) {
                  pdfWriter.copyAcroForm(reader);
               }
          }
          if (arraylen(outlines) gt 0) {
              allBookmarks.addAll(outlines);
          }

          if (NOT allBookmarks.isEmpty()) {
              pdfWriter.setOutlines( allBookmarks );
          }

          // step 5: we close the document
          document.close();

          WriteOutput("Finished!");
      }
      catch (java.language.Exception de) {
          savedErrorMessage = de;
      }
      // cfSearching: close document and output stream objects
      if (IsDefined("document")) {
          document.close();
      }
      if (IsDefined("outputStream")) {
          outputStream.close();
      }
    </cfscript>

    This entry is old _really_ ;-)  CF8/9 introduced a bunch of new features which removed a lot of the need to plunge down into iText for basic pdf stuff.  For example

    http://www.coldfusionjedi.com/index.cfm/2010/2/19/quick-tip-adding-a-bookmark-to-a-PDF-whe n-TI-a-none

    contours = arrayNew (1);
    arrayAppend (contours, 'Pirate Jack');

    But... the bookmarks are more than simple text. This is the reason why the error occurs. Bookmarks are like a structure and can consist of properties, such as a title, action, url, number of pages, style etc. It is not as simple as adding a string. To see what a bookmark object looks like CF, empty variable "bookmarks" just after the isDefined():

    ....

    If (IsDefined ("bookmarks")) {}

    use WriteDump() for CF8 to CF9 try http://www.cflib.org/udf/Dump
    dump (bookmarks);

    ....

    }

    -Leigh

  • create a dynamic pdf with fields unsavable

    Hi, I have dynamically generated a PDF with custom information fields. However I don't want users to be able to record or modify the information in the fields of the pdf. Anyone know if this is possible?

    Thanks in advance

    After you have created the PDF with cfpdf you set permissions for the document with the permissions attribute and apply by setting the action attribute to "protect":

  • Adding text to PDF using iText instead of CFPDF

    Hello

    I know this may seem a bit off-topic is posted here, but I ask this Council because I am a complete JAVA noob and I guess some of you folk CF could do that before.

    In any case, on my question... I'm already add a watermark image to a PDF using iText (CF8) with the help of colleagues poster (= cfSearching =).  I'm looking for is the best way to go about adding text to the same pdf.  I have to add 4 lines of text (with specific font and size) and Center it under the image being added.   Someone at - it a site they could tell me how to add text in the form and how do I get the width of this text to align properly?  I have search Google and watched a lot of JAVA code but be a noob JAVA, it's hard to know exactly what libs and methods you can use to do this.

    Any help would be greatly appreciated!

    -Michael

    The classes you need are PdfTable and PdfCell

    http://cfsearching.blogspot.com/2008/09/getting-started-with-iText-tables.html

    I was curious, I threw together a rough example. It adds the table in a pdfTemplate, then the model adds watermark to each page. The positioning and table dimensions are based on my sample data, so you'll need to tweak the.  Make sure that the dimensions of the model are large enough to accommodate your image and your text. If the dimensions are not large enough, the watermark is perhaps not visible.


    Err = "";
    TEST VALUES
    maxlinechars = 40;
    dCompany = "Google Inc.";
    dnom = "1600 Amphitheatre Parkway";
    dPhone = '+ 1 650-253-0000';
    dEmail = "[email protected]";
       
    simplify the code by putting the watermark text values in a table
    TextElement = [dCompany, dName, dPhone, dEmail];
    inputFile = ExpandPath ("ChapterSection.pdf");
    outputFile = ExpandPath ("ChapterSection_Watermark_ImageWithText.pdf");
    imgPath = ExpandPath("/dev/beveled_purpleblue.png");

    try {}
    initialize objects to read and write the pdf file
    pdfReader is createObject ("java", "com.lowagie.text.pdf.PdfReader") .init (inputFile);.
    outStream is createObject ("java", "java.io.FileOutputStream") .init (outputFile);.
    pdfStamper is createObject ("java", "com.lowagie.text.pdf.PdfStamper") .init (pdfReader, outStream);.

    get the size of the watermark image
    Note: table width and height are examples of values for demo only...
    Watch to your dimensions are large enough to accomdate your text and image
    otherwise the watermark is perhaps not entirely visible
    IMG is createObject ("java", "com.lowagie.text.Image") .getInstance (imgPath);.
    tableWidth = img.width () + 100;
    tableHeight = img.height () + 75;
           
    create a template for the table storage
    CB = pdfStamper.getOverContent (1);
    model = cb.createTemplate (tableHeight, tableWidth);

    create a single-column table
    table = createObject ("java", "com.lowagie.text.pdf.PdfPTable") .init (1);
    table.setTotalWidth (tableWidth);

    reusable objects for adding rows in the table
    PdfCell = createObject ("java", "com.lowagie.text.pdf.PdfPCell");
    Expression = createObject ("java", "com.lowagie.text.Phrase");

    Add the watermark image to the first line
    imageCell = PdfCell.init (img, false);
    imageCell.setBorder (PdfCell.NO_BORDER);
    imageCell.setHorizontalAlignment (PdfCell.ALIGN_CENTER);
    table.addCell (imageCell);

    Add each piece of text in the table of a new line
    for (x = 1; x<= arraylen(textelements);="" x++)="">
    textCell = PdfCell.init (Phrase.init (TextElement [x]));
    textCell.setBorder (PdfCell.NO_BORDER);
    textCell.setHorizontalAlignment (PdfCell.ALIGN_CENTER);
    table.addCell (textCell);
    }
           
    get the calculated height of table
    table.calculateHeightsFast ();
    tableHeight = table.getTotalHeight ();
    table.writeSelectedRows (0, - 1, 0, tableHeight, model);
    WriteOutput ("calculated tableWidth =" tableWidth & ", tableHeight =" "& tableHeight &")
    ");

    Add model watermark to each page
    Note: x / yPos values are for demo only (in upper right)...
    i = 0;
    totalPages = pdfReader.getNumberOfPages ();
    so that {(i LT totalPages)
    i = i + 1;
    content = pdfStamper.getOverContent (javacast ("int", i));
    positioning of arbitrary code
    pageSize = pdfReader.getPageSize (i);
    yPos = pageSize.height () - tableHeight - 15;
    PosX = (pageSize.width () - tableWidth)-25;
    content.addTemplate (template, xPos, yPos);
    WriteOutput ("watermarked page" & I & "xPos =" & xPos & ", yPos =" "& yPos &")
    ");
    }
    }
    catch (Exception e) {}
    ERR = e;
    }
    If (IsDefined ("pdfStamper")) {}
    pdfStamper.close ();
    }

    If (IsDefined ("outStream"))
    {
    outStream.close ();
    }

  • SQR doesn't generate PDF file

    Hello
    on F9 with 8.49 tools on a Win 2003 server, the SQR generates PDF, but only the files nnnnn.out and nnnnn.log.

    What could be the reason? What should be checked?
    Thank you.

    Hello...

    the table that uses the type of output file is PS_PRCSOUTPUTFILE, lokk in this table...
    (or)
    Login to PIA...

    Go to peopletools - planner of process - control panel - treat type - type of output of the process.
    Select sqr and see web type and active and is enabled by default.

    Then browse to treat the output format (the next to the last tab)

    Then, select the process type sqr and output destination web type are selected...

    then u should see *.pdf is active and default... If she's not lacking...

    reconfigure the process Scheduler (Scheduler bounce and clear the cache).

    This should give doc pdf u...

    any questions... Please update

    Thnks!

  • Schedule e-mail generated PDFs through BI Publisher

    Hello


    We have a process of bursting of pdf files and email to customers with the generated PDF files.

    Could you get it someone please tell me if there is a chance of planning of the e-mail to the customer.

    Our requirement is that invoices are generated during the break-up of this program but e-mail should be sent after 24 hours of printing.


    If anyone knows this subject please help me.


    Thank you
    YZR

    again, you have to insert a record into a table with date and use a custom program to warn the user after 24 hours.

    You have to write a simulation of notification within a period of 24 hours

  • External-graphic not shown in PDF with Tomcat / Cocoon / Ubuntu

    Hello

    This weekend I put in place a virtualbox with Ubuntu 8.04 OS; 3.12 @ Oracle-10gXE APEX; Tomcat 6.014; Cocoon 2.1.11; sitemap fop_post according to Carl Backstrom blogpost ([http://carlback.blogspot.com/2007/03/apex-cocoon-pdf-and-more.html]) file; to experiment with the APEX & PDF printing.

    Tomcat is configured to listen on port 8888; APEX to 8080.

    I have APEX facility according to Carl blogpost. All works well; I can generate PDF reports using the standard templates. I'm new to XSL, but decided to lash out. I decided to include a JPG image.

    I followed the example of Scott & Spendolini, Pro Oracle Application Express, page 399. However, the image does not appear in the PDF file, nor is it a produced error message. What's wrong?

    It comes to the relevant section of the source code, I used:

    & lt; fo:static - name of content stream = "region-footer" & gt;
    & lt; fo:block xsl: Use-attribute-sets = "footer text" & gt;
    & lt; fo:inline xsl: Use-attribute-sets = "policy of the body-page number" & gt;
    & lt; fo: external width chart = "50px" height = "50px" src = "url ("http://www.fiat128.nl/images/fiat128.jpg")" / & gt;
    & lt; fo:page - number / & gt;
    & lt; / fo:inline & gt;
    & lt; / fo:block & gt;
    & lt; fo:block xsl: Use-attribute-sets = "text text_2 #PAGE_FOOTER_ALIGNMENT #" & gt;
    & lt; fo:inline xsl: Use-attribute-sets = "footer" & gt; #PAGE_FOOTER #& lt; / fo:inline & gt;
    & lt; / fo:block & gt;
    & lt; / fo:static - content & gt;

    any help is appreciated. Is there a problem with Cocoon and Linux?

    many ways,

    Ronald van Dijk

    Published by: user614694 on October 6, 2008 03:09

    Published by: Ronald van Dijk on October 6, 2008 03:10

    Hello Ronald.

    Your code looks fine to me. Although xsl - fo is not very friendly for a slight change...

    It is an example I used in my presentation of PDF print:


    #PAGE_HEADER #.


    background-image = ' url ('http://o11g1.apex-evangelists.com:7779/i/htmldb/apex_logo.gif')).
    padding = "12pt".
    text-align = "center" > Apex evangelists

    It works for you?
    (replace your hostname: port - o11g1.apex - evangelists.com:7779 and see that you get the image using the url)

    I've occasionally seen problems viewing some pictures or specifying the width.

    Kind regards
    Dimitri
    ----------------------------------
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/

Maybe you are looking for