Add watermark to pdf stored in a table

Hi,
I would like to add watermark to pdf documents. The documents are uploaded and stored in the database. When a user will request a file, I would like to add the username and the timestamp in the requested file.
Any solutions for this (java stored proc, etc.) ?
Thanks !

Hi,
One option is to use a java pdf library such as iText ( http://www.lowagie.com/iText/ ). You could watermark the pdf's in java stored procedures.
Here's an example I found that does some watermarking (the PdfStamper section):
http://itextdocs.lowagie.com/tutorial/general/copystamp/index.php
One way to use iText would be to load the iText jars into Oracle and write a java store procedure to manipulate the pdf's in Oracle.
Regards,
Jeff

Similar Messages

  • Can i add watermarks to PDF files using the PDF Pack?

    Can i add watermarks to PDF files using the PDF Pack?

    Hi Susannah,
    Adobe PDF Pack does not allow you to edit a PDF file. For that, you would need Acrobat. You're welcome to try Acrobat for free for 30 days: see http://www.adobe.com/products/acrobat.html for more information.
    This Help document describes how to watermark a PDF in Acrobat: Add watermarks to PDFs
    Best,
    Sara

  • Add watermark to PDF

    Hi
    I am trying to add a watermark to existing pdf's in 10.4.11 & 10.5.7 using Adobe Acrobat Professional (8.1.3), having the watermark appear on top of page, show when printing, selecting a file source, fitting to page.
    I have searched for an applescript solution, but have found only one, I do not no if doing a shell script is possible as I do not no shell scripting.
    I have run into this link which uses pdftk
    http://www.accesspdf.com/pdftk/index.html#docs
    I have installed on 10.4.11 hoping it would work, but it appears not to as it looks like it was only set up for Panther (i could be wrong).
    I also found this link
    http://discussions.apple.com/message.jspa?messageID=676855
    which is what I was wanting, an applescript to run the above command to add a water mark, but this also appears not to work.
    Does anybody no of and applescript, shell script solution to do what I am after please.
    cheers
    Budgie

    Check out Acrobat's Javascript API
    http://www.adobe.com/devnet/acrobat/pdfs/jsapireference.pdf
    page 272 has info on setting a watermark from file. The javascript can then be executed upon a PDF with AppleScript/Acrobat Pro's 'do script' command. I use the following to set a watermark from text:
    tell application "Adobe Acrobat Professional"
    do script "var d = app.openDoc({cPath:+path to PDF+,bHidden:true});d.addWatermarkFromText({cText:'PROOF', bOnScreen:false, bOnPrint:true, nScale:-1, nOpacity:.15, nRotation:20});"
    end tell
    The javascript code can be compiled as a string with applescript variables, tho I occasionally have to coerce it into Unicode text depending on which version of OS/AppleScript is at play.

  • Add watermark to pdf version 1.1 or 1.2

    Hi all
    I'm currently using iText to watermark PDFs and it's working like a charm.
    Some people had some trouble in watermarking PDFs and I found it was all related to old version of PDF. So I searched on the web but couldn't find any information about the features and history of PDFs (Wikipedia is nice but doesn't seem to be complete).
    Thanks
    Serge

    Thanks for your answer!
    I found a way with iText to force the PDF version and it solved my problem.

  • Can I display a PDF stored in a table on a standard screen

    I have a requirement to allow a user to be able to review a returned Adobe Interactive Form before approving the form to be process and posted to FI.
    I am looking to save the returned form in a ztable and then later display the form on a screen with buttons to approve or reject.
    Is this possible without using a web dynpro?
    Every solution I track down seems to fill 80% of my needs.
    Suggestions?

    I don't know if it will meet your requirement or not, but you can use the HTML control to display a PDF document (the Adobe plug in should happen automagically for you) - then you could have additional buttons on that screen for the actions to be performed.
    To try it out, run report SAPHTML_DEMO1 (or go in via the Tcode DWDM Controls Demo) and simply paste in the directory and file name to be displayed e.g. "c:\data\demo_po.pdf" or whatever your PDF is called.
    Jonathan

  • I want to add runtime Text or Image watermark on pdf using iText1.3 api

    Hi all,
    I want to add a watermark(text or image) at the runtime, I am creating pdf file with using iText 1.3 api.
    It created fine. I have following code for add watermark for an existining file.
    <code>
    try {
    PdfReader reader = new PdfReader("ConfirmBillPDF.pdf");
    int n = reader.getNumberOfPages();
    PdfStamper stamp = new PdfStamper(reader, new FileOutputStream("NewPDFWithWatermarkImage.pdf"));
    int i = 0;
    PdfContentByte under;
    Image img = Image.getInstance("ValidityExpWaterMark.png");
    img.setAbsolutePosition(100, 400);
    while (i < n)
    i++;
    under = stamp.getUnderContent(i);
    under.addImage(img);
    stamp.close();
    catch (Exception de)
    de.printStackTrace();
    </code>
    But I want to add this with runtime.
    Plese help me..

    MODERATOR ACTION: moved this here from the Servlets forum 'for closer topic alignment'.

  • Problem displaying PDF stored in BLOB column

    Hello everyone.
    I've been trying to follow this tutorial http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::p11_question_id:232814159006 on displaying PDFs stored in BLOB columns. This is being performed on Apex 4.2, with my DB running 11g. I've got my procedure, which I'll post below:
    create or replace procedure "PDF" (p_id IN gvo_documents.doc_id%type)
    is
        l_lob    blob;
        l_amt    number default 30;
        l_off   number default 1;
        l_raw   raw(4096);
    begin
        select contents into l_lob
            from gvo_documents
             where doc_id = p_id;
    -- make sure to change this for your type!
        owa_util.mime_header( 'application/pdf' );
        begin
            loop
              dbms_lob.read( l_lob, l_amt, l_off, l_raw );
              htp.prn( utl_raw.cast_to_varchar2( l_raw ) );
              l_off := l_off+l_amt;
              l_amt := 4096;           
        end loop;
            exception
               when no_data_found then
                  NULL;
            end;
    end;
    I am trying to run this through a PL/SQL dynamic region and while I don't receive any error's, the content displayed is a huge mess of garbled text and odd characters. I've tried to run this procedure on numerous other document types, including word files and jpeg images, all with the necessary changes in my procedure, and regardless of what I use, I still get a large mess of strange characters. Does anyone have any information or ideas about why this is happening?

    If I understand correctly, your requirements needs to be broken down into two problems:
    1) click link that pops up a window displaying a new APEX page
    2) an APEX page the displays the document, not downloads it.
    I haven't done #1 (yet).
    However, you may be able to generate a URL that points to the new page as part of the SELECT statement for the Report.
    This has a related question, but no answer yet:
    open pdf in popup browser window
    The key is target="_blank" for the anchor tag.
    To generate the URL, you should use the APEX_UTIL.prepare_URL() function.
    If that doesn't work, a Dynamic Action that does some magical JavaScript stuff may be needed.
    For #2, I lost the URL that showed how to display a PDF as part of a "form" page.
    From what I remember:
    Start with a blank page with one blank HTML region (all the Items go in the HTML region)
    Add an Item for the PK/Doc_ID
    part I forgot Create a Data Manipulation Process
    - Automated Row Fetch
    - On Load - After Header
    - (stuff for your table/view)
    part I forgot Create an (I believe) "File Browser" item type. For Settings:
    - Storage Type "BLOB column specified in Item Source" (and place the column name of the BLOB there)
    - MIME Type Column: (column name) -- since you have multiple types, this is a MUST HAVE
    - Filename Column: (column name) -- I highly recommend you have this.
    - Content Disposition == INLINE <-- this is the kicker
    Also, you will need a Browser Plugin for each of the MIME Types (otherwise, the browser may try to 'download' the file)
    Browsers can handle Image types internally. Adobe's plugin can handle PDFs. I don't know about Word/Excel.
    Again, I don't remember the exact details, but that should cover most of it.
    MK

  • Generate PDF file from oracle Table

    We need to populate pdf file into oracle table of column blob through informatica by taking
    path\name(/path/filename.PDF) as input from source table.
    The pdf file is on some other server so, we need to create a stored procedure which will give pdf file as output from
    other server by taking path\name from source table column as mentioned above.
    So please suggest how we can create a stored procedure for that purpose.
    If possible please share some script.

    Dear all,am new to oracle report and oracle forms and i know the
    basics how to generate the report and to create the form, Now my doubt is, like generating report
    from oracle report how to generate the report from oracle from,should i add any command button? and where
    to add the coding and what coding ? when i click that command button the report should be generated like oracle
    report,what should i do?Please help me to learn.
    my table name is 'student' and it has the following columns,
    sid,sname,grade,result.
    Am using oracle from 10.1.2.0.2 version and
    oracle report version is 10.1.2.0.2.
    Please give step by step procss.
    Thank you.

  • How to add Images and PDFs in MDM iView

    Hello!
    We use SAP Portal as interfase to access SAP MDM repository tables.We use MDM Record Set and MDM Item Detail iViews to display and operate with main table content.
    There is a field in the qualified table, which is the lookup to the Images table. And the other field is the lookup to the PDFs table. Both fields are qualifiers.
    In the main table there is a field, which is the lookup to the qualified table. When we try to add values to this field using Item Detail iView, we get a window, where we can fill all values of the qualified table, except Image field and PDF field - they are disabled. So, can we add Images and PDFs to the table using Item Datail iView? Or what is the other way to add them?
    Thanks,
    Vika
    Message was edited by:
            Viktoria Demina

    Ooohh... you mean, like the one mentioned in http://indesignsecrets.com/adding-zoom-and-print-to-indesign-swf-files.php?
    But they want to get paid for their hard work, the bastards!

  • Creation of PDF Document  using ADF Table data in new window

    Hi Guys,
    I have a requirement of creating a pdf document from adf table and it must open in a new window.I know creation of pdf document using itext pdf jar.But in my case how to write the table data to pdf and how to open it in new window.
    Thanks,
    Srinivas.

    In the TF do like this..
    view activity A-------dialog:invokePdf------->view activity B (invokePdf)
    Fragment A command button would be
    <af:commandButton action="#{pageFlowScope.PdfBean.openPDF}"
    text="Generate" id="cbpdf"
    useWindow="true"
    windowWidth="700" windowHeight="700"/>
    in the action add a return like return "dialog:invokePdf";
    Control flow outcome is "dialog:invokePdf". B would be just a empty fragment.

  • RFC returning PDF form in Binary table

    Hello,
    In our earlier application we were using a RFC to return PDF form as a table of binary fields and then these fields were concatenated and .pdf extension addded at the end. This will then display correctly in browser as a pdf form. Typically, this returns about 30000+ lines of binary for one form.
    Now we are migrating this application to Portal and I'm trying to display all this information through Adobe Interactive form. We do not currently have any other RFC to return all data that is part of the existing PDF document returned by current RFC. Getting all that data through one RFC is a tedious and time consuming task that we want to avoid. Is there a way to use the binary table returned by existing application and convert it to a pdf form? I was thinking of using the 'pdfsource' property of Interactive form - but am not sure about the possibilities.
    Can anyone help with some pointers?
    Thanks,
    Vishwas.

    I'm using following code to concatenate the binary string and then to display the PDF file.
    Concatenation was being done in earlier application and there is no code available for reference. I've tried following code, it opens the Adobe PDF viewer but it always shows error "File does not start with %PDF-". Please let me know if the code below is correct or is there something I need to do differently.
      public void wdDoInit()
        //@@begin wdDoInit()
    IWDMessageManager manager = wdComponentAPI.getMessageManager();
    //Populate data for RFC
    wdContext.currentZ_Sd_Get_Output_Pdf_Verify_InputElement().setKappl("V1");
    wdContext.currentZ_Sd_Get_Output_Pdf_Verify_InputElement().setKschl("ZA00");
    wdContext.currentZ_Sd_Get_Output_Pdf_Verify_InputElement().setKunag("0001000021");
    wdContext.currentZ_Sd_Get_Output_Pdf_Verify_InputElement().setKunwe("0001000023");
    wdContext.currentZ_Sd_Get_Output_Pdf_Verify_InputElement().setVbeln("0000018261");
    //Call RFC
    wdThis.wdGetPDF_from_Binary_compController().executeZ_Sd_Get_Output_Pdf_Verify_Input();
      int num = wdContext.nodePdf4().size();
    //Initial string
      String s = "";
    for(int n=0;n<num;n){
    //Concatenate binary data in string with Radix 2
    BigInteger bi = new BigInteger(wdContext.nodePdf4().getPdf4ElementAt(n).getData());
    s= bi.toString(2);+
       manager.reportSuccess(s);
    // Display pdf
        IWDResource resource = WDResourceFactory.createCachedResource(s.getBytes(), "file.pdf", WDWebResourceType.PDF);
        IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(resource.getUrl(0),"file.pdf");
        window.show();
       //@@end
    It opens the Adobe PDF viewer but gives error "file does not start with %PDF-".
    What is it that I'm not doing correctly here?
    Thanks,
    Vishwas.
    The data being returned from RFC is in RAW format. Is it same as Binary?
    Edited by: Vishwas Madhuvarshi on Mar 6, 2008 10:54 PM

  • Linking to PDF Files in the Table of Contents

    I know there is a way to link directly to a PDF file from the table of contents, but it is beyond me. Anyone know how to do this?
    Thanks, Kathy

    Hi Kathy
    It's probably advisable to first add the PDF as a Baggage File. Then when you are creating the TOC entry point, you point at the Baggage File.
    If that wasn't what you were hoping to see, you could also do it by simply linking to the PDF as you would a Web Page by specifying the explicit URL that would open the same file if you were doing it using a browser.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • How to watermark multiple PDFs on a mac

    Hi,
    I have around 100 PDFs that each need to have the same watermark. I've read that a batch sequence may be the answer but i can't find the 'advanced' menu option- does it have a diferent label as i'm using an apple mac?
    is acrobat even the right program? i have access to indesign and photoshop if either would be better.
    Any help would be greatly appreciated,
    Thank you

    Hi,
    Thank you for your help! I have tried this a couple of times now but it doesn't seem to be working.
    I create a new custom action by dragging the 'add watermark' box over, and when i run the action on the selected files everything seems to work- in the box on the right it works it's way down each of the 'files to be processed', putting a little green tick after each.
    However, i can then close and save that file and none of the files that i've supposedly just watermarked are watermarked.
    Am i missing something obvious?
    Thank you!

  • How to add watermark programattically

    Hello All
    I wanted to use the addWatermark javascript to my pdf file . I read from the documentation it needs a Acrobat 7 professional to do that. How do I programattically through SDK add the script .how to execute it through professional and send the saved pdf to the end user.

    As an alternative, you may want to create a batch sequence for this ... it's easier and quicker.
    Advanced > Batch Processing ... > New Sequence ... > [name for new sequence] > Select Commands ... > Document: Add Watermark & Background > Add>>
    Then, in the batch sequence command list on the right, doubleclick "Add Watermark & Background" to call up the dialog that lets you set all the watermarking parameters.
    Bruce

  • Parked Vendor Invoices stored in which tables?

    Parked Vendor Invoices (not yet post) stored in which tables (both header and items)?

    Hi,
    Check out following tables
    VBSEGA - Document Segment for Document Parking - Asset
    VBSEGD - Document Segment for Customer Document Park
    VBSEGK - Document Segment for Vendor Document Parking
    VBSEGS - Document Segment for Document Parking - G/L A/c
    hope this helps

Maybe you are looking for

  • How to read a Value from Excel Cell into Oracle Forms 10g with Java

    Did any one Implamented a Java PJC to integrate Excel on Oracle Forms 10g? I Open Excel Applikation. Open a File like c:\import_test.xls read a number 05 from A:1 (i get it as return value). Save a number in a variable in Forms 10g Can any one help m

  • PTO Accruals - Ceiling value needs to be grade based

    Release 11i.10.2 Details of the plan ============= Accrual Formula = PTO_PAYROLL_BALANCE_CALCULATION Carry Over Formula = PTO_PAYROLL_CARRYOVER Payroll Balance Reset Date = 1st January Period of Ineligibility = 6 months Accrual Band Years of Service

  • How to turn on 2g connection in iphone 4s

    i can't believe there is no option to turn on 2g connection?how is that even possible,the battery dies out so quickly

  • Broken Shift key

    Greetings. My 9 month old baby managed to snap the shift key off my PBook, God love her. So Ive got the key itself, a flat plastic bit still attached to the key, a metal bar in a "U" shape and a loose 'u' shaped bit. Tried fiddling around but can't g

  • Others uploading to my web gallery

    I was hoping someone here can help. I have set up a web gallery from imovie, where people can view my movies, but i was hoping that they could also upload to it and put their videos in. I thought this was possible, but for some reason, the upload but