PDF viewer to manipulate pdf files

Hello,
I am using MySQL and JSP in order to create a website.
In a table from the database i have store pdf files using the data type BLOB.
How I can manipulate these pdf files from the JSP?
I have search that the Java PDF SDK might do that job. Is anybody that has used
it before?
Please help me as soon as possible.
Thank you in advance

Current Firefox versions have enabled a new build-in PDF Viewer and that viewer doesn't have all the features that the Adobe Reader has.
You can change the action for Portable Document Format (PDF) from Preview in Firefox to use the Adobe Reader or set to Always Ask in "Firefox > Options > Applications".
You can set the pdfjs.disabled pref to true on the <b>about:config</b> page to disable the build-in PDF viewer and use the Adobe Reader instead.
See also:
*https://support.mozilla.org/kb/view-pdf-files-firefox-without-downloading-them

Similar Messages

  • PDF file on my view

    I want attach my PDF file on my web dynpro view
    I have read in this forum about my problem the using of IFrame element but don't work.
    Please help me, thanks

    I guess you could avoid such problems using mapping. Here's some example code, modified from an example:
    // Original code from 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002
    // www.BruceEckel.com. See copyright notice in CopyRight.txt.
    import java.io.RandomAccessFile;
    import java.nio.MappedByteBuffer;
    import java.nio.channels.FileChannel;
    static int length = 0x8FFFFFF; // 128 Mb
    public static void mapThis (String file) throws Exception {
        MappedByteBuffer out = new RandomAccessFile(file, "rw")
            .getChannel().map(FileChannel.MapMode.READ_WRITE, 0, length);
        byte b;
        if(!out.isLoaded()) out.load();
         for (int i = 0; i < length; i++) {
             b = out.get(i);
             manipulate(b);
    As for Bertram's solution, couldn't get it to work properly in a dynamic use case - I'm getting the input stream from IResource, and I get a ClassCastException everytime I use something different from InputStream. With that problem comes another one: InputStream.read() consuming the first byte from the file, which is a problem when dealing with PDF and DOC files, for example. Since I know the users are opening PDF files, made a quick-and-dirty workaround by inserting manually the missing byte. Really dirty one, actually - the byte changes with the file format. Below is the code I used - it works, but I'd love to see a different workaround.
    public void openFile( )
        //@@begin openFile()
            //KM files are shown in a table
            //get index of selected table row
         int i = wdContext.nodeTableContent().getLeadSelection();
         //get the name of the according object (resource)
         String name = wdContext.nodeTableContent().getTableContentElementAt(i).getObjectName();
         String path = wdContext.currentContextElement().getPath();
         try {
         RID pathRID = RID.getRID(path"/"name);
         IWDClientUser wdClientUser = WDClientUser.getCurrentUser();
         com.sap.security.api.IUser sapUser = wdClientUser.getSAPUser();
         IUser ep5User = WPUMFactory.getUserFactory().getEP5User(sapUser);
         IResourceContext resourceContext = new ResourceContext(ep5User);
         com.sapportals.wcm.repository.IResource resource = ResourceFactory.getInstance().getResource(pathRID, resourceContext);
         InputStream in = null;
         in = resource.getContent().getInputStream();
         int bSize = 10 * 1024;
         byte[] bArr = new byte[bSize];
         ByteArrayOutputStream baos = new ByteArrayOutputStream ();
         int offset = 0;
         int data;
         //dirty!
         String ext = name.substring(name.length()-3);
              if("pdf".equalsIgnoreCase(WDWebResourceType.getWebResourceTypeForFileExtension(ext).getFileExtension())) {
              byte b = '%';
              baos.write(b);     
         while ( (data=in.read(bArr)) != -1)
         baos.write(bArr);
         IWDAttributeInfo pdfAttributeInfo = wdContext.getNodeInfo().getAttribute(IPrivateKMBrowserAppCompView.IContextElement.PDF_RESOURCE);
         IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) pdfAttributeInfo.getModifiableSimpleType();
         binaryType.setFileName(name);
            binaryType.setMimeType(WDWebResourceType.getWebResourceTypeForFileExtension(ext));
         wdContext.currentContextElement().setPDFResource(baos.toByteArray());
         } catch (Exception e) {
        //@@end

  • Manipulate plain pdf files with ADS

    Hi experts,
    We are struggling with following requirement:
    Within a webdynpro application plain pdf files (transferred dayly to the servers file system) may be accessed and viewed.
    The pdf should be viewed without any rights to print and save.
    The trouble is - the pdf files are printable and saveable but can not be manipulated before this step.
    We are using NW 7.01 and WD for Java.
    To solve this we configured ADS an tried to convert the PDF using the clientserver.adobe.pdfdocument.api.
    Yet we found no way to rewrite our pdf files with the api.
    Looking through serveral forums did not give us a hint.
    Are we going the wrong way?
    Did we assume falsely that we can manipulate plain pdf files via ADS?
    Thanks' and kind regards,
    Horst

    Hi Dezso,
    thank you for this information! So don't need to invest more time in research.
    As I understand the ADS is designed for forms and workflow stuff.
    On the other hand to have such a powerfull tool like ADS which can not perform such simple actions like manipulation of non ADS generated pdf appears to me quite sad.
    @Otto: As stated above - take a (non ads generated) pdf (e. g. from file system), add/remove rights and view it in a WD. No need of interactive form, template or data if not necessary.
    Best regards,
    Horst

  • How to view aspx PDF files in Safari 4.0.3

    Hi,
    Using Safari 4.0.3 on os 10.5.8. I'm trying to view PDF files that are supposed to be viewed and editable within the browser (this is how the site works on a pc using internet explorer). When I click the relevant icon on the site, the site asks me if I'm sure I want to view that file (this is normal), and I click accept. Then Safari simply downloads the aspx file into the downloads folder. To the extent I could open the aspx manually using Reader (I can't), it wouldn't help anyway because the file is meant to be edited within a web browser, and within the pdf there are options to "save," "save and close," etc. I need to be able to open and view this file from within Safari.
    I have the latest Adobe reader and made sure the settings allowed for opening of PDFs from the internet.
    Any thoughts?
    Thanks.

    I concur with Kirk Olson1's comment above, and have been unable to solve this 'til reading this post.
    Change the .aspx extension of a saved file to .pdf and presto, Preview opens the doc for reading without complaint. This may not solve the problem the user has with editing the file within their browser. But the .aspx file, without a doubt, is in fact a file of "some" sort that is readable by Preview. As to the properties of editing the file, I can't speak to that. Since I am using this to read and save my bank statement, I would hope that the ASPX file is a signed document that can't be edited without the change being detectable... otherwise, what purpose is served by introducing a new filename extension ASPX for PDF files???
    I've had the same "Browser can't view/open ASPX file" problem under Mac OS 10.5.* and Safari and Firefox. A bank provides me with "PDF" files (so they say) that download (to view, or file-save-as) with the .aspx filename extension. Firefox 3.5.* doesn't handle them. I've not downloaded Adobe products to my Mac and have avoided doing so because I don't want Adobe mucking with the way Preview works, etc.
    In an experiment, I am unable to coerce Preview to open a copy of the same file while it had the .aspx extension (via Ctrl-Click the aspx file, Open_With, Enable All Applications to Open). Preview just sits there without opening the file, no error dialog, and I don't see any telltale warnings in the console log either. The same file, with a filename extension changed, no problem opening and viewing.

  • How to view PDF files like a flipping magazine?

    Hi, I am new here. I didn't know if it is the optimum catagory for my question, I hope you guys will help me.
    In brief, I want to view PDF files like a flipping magazine. You know, just the same flipping effect that ibook did on ios. Adobe reader is the only choice to browse PDF on computer for me. It's kind of bothering and annoying now.
    So, any ideas for that? Plus, my computer runs on win7 64bit.

    This is also a good site:  http://www.issuu.com/  You can sign up and use it for free or you can upgrade(for a price) to make custom changes (like background color, button color, etc.)  You can also embed the html code into your website if you would like someone to view it there.  Good luck!

  • How to view PDF files in Safari

    Hi,
    I can't view PDFs in Safari since updating to 5.1.  I just get the annoying dark-grey screen
    I don't have Adobe Reader/Pro installed, I don't have the internet plugin, I have tried running the phrase in Terminal that is supposed to tell Safari to open PDFs not get another program to (cut and paste into terminal as is from various other threads) and I have tried downloading the file form this address: http://www.macupdate.com/info.php/id/22361/safari-display-or-download-pdf-files (incidentally, I can't download it because Safari tries to open the .dmg file in a new tab, but that doesn't work, nor does OPT-click -> Download linked file allow me to download it).
    I've been to the Genius Bar at that local Apple store and the tech couldn't help - even though she looked at the problem for about 30 mins.
    Does anyone know of any other possible fixes for this incredicbly annoying problem?
    Cheers
    Sean..

    Please enable guest logins and log in as Guest. Test. Same problem?
    Mac OS X 10.6 Help: Creating a guest user account

  • How to view PDF files in Safari 5.1?

    Every time I try to view a PDF file in Safari 5.1.1 (double clicking or using the contextual menu)i, it downloads the file instead. Is there a fix for this?
    Adobe tells me that their plugin will not work with Safari 5.1 (with Lion or Snow Leopard) and suggests that I revert to Safari 5.0/Leopard.
    A.

    Go to /Library/Internet Plug-Ins.
    Move the PDF Browser Plug-In to the Trash.
    Restart your Mac. Try viewing a PDF in Safari.
    Known Issues | Adobe products on Mac OS 10.7 Lion

  • Cant open PDF files..It says the adobe acrobat reader that is running can not be used to view files in a browser..plz suggest the solution.thanks

    Whenever i try to open a PDF file it says " The adobe/acrobar reader that is running can not be used to view files in a web browser. Plz exit adobe/acrobat readerand exit your web browser and try again." Wt do i need to do, plz suggest.
    Regards
    Aditya Bhargava

    Hi adityabhargava01-
    My first suggestion is to upgrade to the most recent version of Firefox by going to this link:
    http://www.mozilla.org/en-US/firefox/new/
    My second suggestion is to read this article on how to many your preferences on how Firefox deals with PDFs and all other file types:
    [[Options window - Applications panel]]
    I hope that helps!

  • AdobeAcrobat/Reader that is running can not be used to view PDF Files in Web Browser...what do I need to do to fix this..

    I just got Windows 7 and have been having problems since loading it. Most of my drivers only go to Vista and don't recognize 7.
    I have trying to download some manuals from their website
    and keep getting this message; Adobe Acrobat/reader that is running can not be used to view PDF files in Web Browser.

    Could I suggest a workaround for PDFs until a solution is posted? Open them directly in the Adobe application rather than in a browser tab.
    In your Adobe application(s), go to:
    Edit > Preferences > Internet
    Then uncheck "Display PDF in browser"
    (There are very few sites where having PDF integrated is really beneficial.)

  • Chrome - Adobe-Acrobat/Reader can not be used to view PDF files in a web browser.

    I can't view PDF files via Chrome (it works on Internet Explorer but I prefer Chrome)  -  the error below has arisen recently on Chrome, though I can't see what has changed.
    "Acrobat plug-in
    The Adobe-Acrobat/Reader that is running can not be used to view PDF files in a web browser. Please exit  Adobe Acrobat/Reader and exit your Web Browser and try again."
    I have looked through Forum articles on similar errors and have tried the following(text copied from other Forum entries)
    Repair Adobe Acrobat (from Acrobat)
    Repair Adobe Acrobat (from Control Panel
    Configure Acrobat  as a helper application: Choose Edit > Preferences., Select Internet on the left., Deselect Display PDF In Browser Using [Acrobat application], and then click OK.Quit Acrobat or Reader
    Create a registry item for Acrobat: with Regedit: If the registry item doesn't exist on the system, do the following: Go to Edit > New > Key and create the missing HKEY_CLASSES_ROOT\Software\Adobe\Acrobat\Exe.Go to Edit > New > String Value and name this key (Default).Select (Default), and then go to Edit > Modify. Type the Adobe Acrobat path in the "Value data" for your product.,restart your computer
    Repair the HKCR\AcroExch.Document registry key: Navigate to HKEY_CLASSES_ROOT\AcroExch.Document., Right-click AcroExch.Document and select Delete; make sure that you have the correct key, and click Yes on any prompts, Right-click AcroExch.Document.7 and select Delete; make sure that you have the correct key, and click Yes on any prompts. Repair your Acrobat  installation
    None has solved the problem. However it still works ok with IE. But I want to stick with Chrome because I find IE is so slow!
    I am using Vista, with Adobe Acrobat standard 9.5.2 and Google Chrome version 23.0.1271.64 m which is marked on Chrome as 'up to date'
    Does anyone know why I might be getting this error on Chrome but not IE?

    I think I have discovered the answer to my own question!
    I have disabled Adobe Reader plug-in, and can now see PDFs in Chrome.
    (Steps: Chrome Menu, Settings option, Click Advanced Settings link, then Content Settings button, then select Disable Individual Plug-Ins, and a list of plug-ins is offered to enable or disable).
    I then get a different result depending on whether or not Chrome PDF viewer is enabled - with it enabled I see the PDF document in Chrome, or with it disabled then the option is offered to download it, but either way I can get it it via Chrome without having to run Internet explorer in another browser window.

  • Reader 9.2 - "can not be used to view PDF files in a web browser"

    Hello,
    I recently deployed Adobe 9.2 within our organization. I used the Adobe Customization Wizard 9 to transform the install set, and selected the "Display PDF in Browser" option as default.
    When opening a PDF linked from a web URL, we get the message: "The Adobe Acrobat/Reader that is running can not be used to view PDF files in a Web Browser. Adobe Acrobat/Reader version 8 or 9 is required. Please exit and try again." This occurs under IE8 and IE6, in both Windows XP SP2 and Windows 7.
    If I launch Adobe Reader and unselect "Display PDF in Browser" in preferences, PDFs open normally.

    I think I have discovered the answer to my own question!
    I have disabled Adobe Reader plug-in, and can now see PDFs in Chrome.
    (Steps: Chrome Menu, Settings option, Click Advanced Settings link, then Content Settings button, then select Disable Individual Plug-Ins, and a list of plug-ins is offered to enable or disable).
    I then get a different result depending on whether or not Chrome PDF viewer is enabled - with it enabled I see the PDF document in Chrome, or with it disabled then the option is offered to download it, but either way I can get it it via Chrome without having to run Internet explorer in another browser window.

  • Adobe 9.1.3 and FireFox 3.5.1+ "...can not be used to view PDF files in a Web Browser"

    This is the issue but I'm not sure there is a resolution:
    Firefox:  Version 3.5.1
    Adobe: Version 9.1.3
    When navigating the web, click a URL that opens a PDF inside the browser and you get an error * "The Adobe Acrobat/Reader that is
    running can not be used to view PDF files in a Web Browser".  Please exit Adobe Acrobat/Reader and exit your Web Browser and try again".  I did read a post that doing a "repair" from the Adobe Reader application should fix this, they also reference a few registry keys to check becuase the post states it's lost the application path to Adobe version X.  I don't necessarily buy that "fix" and here are my details below.
    In FireFox if you navigate to Tools > Options > Applications > Adobe Acrobat Document
    You're given choices:
    Always ask:  DOES NOT WORK, produces afore mentioned error *
    Save File:  Works, saves the file to a directory on your PC
    Use Adobe Reader 9.1 (defau...:  Works, opens your PDF's outside of your web browser
    Use Adobe Acrobat (in Firefox):  DOES NOT WORK, produces afore mentioned error *
    Use other...:
    IE seems to just work as expected.
    If you open Adobe Reader > Edit > Preferences > Internet > Check "Display PDF in browser" - DOES NOT WORK, produces afore mentioned error *
    This would seem to be an Adobe error rather than a FireFox web browser problems since FireFox does seem to know the correct path although I suppose you can't rule out that this is a FireFox problem since 2 out of the 4 PDF open options DON'T WORK.
    Any thoughts on this issue would be greatly appreciated.
    Other information:
    Adobe 8.1.5 works perfectly with FF 3.5.1+ when opening PDF's in the web browser, we also had no problems with previous versions either.
    MSI push via Active Directory from Adobe 8.1.5 upgrade to Licensed Distribution I signed up for, Adobe 9.1.3 which was upgraded from 9.1.0, to 9.1.2, to 9.1.3 via an MSP patch.
    Operating system:  Windows XP SP 2, plenty of RAM, plenty of Drive
    IE version this works with the new version of Adobe 9.1.3 is version 7 (7.0.5730.13)
    Our FireFox MSI's come from Front Motions website and as far as I know we've never had problems with their MSI's, also tried the new release of FF 3.5.2 from their website.
    I think that about covers it.  Anyone else experiencing the same problems or have a patch?

    After troublshooting this for the entire day today the issue seems to be a MIME problem.
    If everything is woking perfectly, in Tools > Options > Applications...
    You should see 4 or more things related to Adobe like "Adobe Acrobat Forms Document", etc.  If you don't see at least 4 MIME entries either your Adobe installation is hosed or your FF installation is hosed.  I haven't figured out which is causing the issue.
    What I did was remaster my patches from my original Adobe 9.1.0 MSI with the two updates via the command line in the directories with the source files.  On the 9.1.0 original file I first remastered my MST transform with the Adobe MST utility.  I then applied my patches.
    msiexec /a AcroRead.msi /p AdbeRdrUpd912_all_incr.msp
    msiexec /a AcroRead.msi /p AdbeRdrUpd913_all_incr.msp
    I then uploaded that to my network share, unlinked my group policy, made a new group policy, added a batch file to delete adobe.com from program file and the desktop on system startup even though my MST was supposed to take care of that - it's not a perfect world is it?  :-)
    I then reapplied my GPO's for both FireFox 3.5.2 and Adobe 9.1.3, I checked to make sure the MIME extensions were there and they were.  You might have to go into your Adobe Preferences and select that open in browser setting depending on what happens or adjust your MIME settings in FireFox's options but it should work.
    That's what worked for me.  It's possible a few other things I did along the way tweaked it out, in my group policy on the first run I did select to upgrade previous group policies, for the remaster and repush I didn't select any previous GPO's to upgrade.
    It's hard to tell what one thing tweaked it out or what combination of things tweaked out the install.  I did also reinstall Adobe 8.1.5 and FF 3.0.10 before doing all this since our machines currently have that setup, I'm not sure if that affected it either, it's just hard to tell but I don't think it did simply because I had done that several times in troubleshooting this issue.
    If anyone else has more specifics that would be great!

  • I can not view pdf. files on the web.

    I have downloaded the latest Adobe reader.
    I can open and view existing pdf files on my desktop.
    I can not however view any pdf files from web sites.

    Yes, it was working.
    Last week I cleaned up my hard drive using an app. called OmniDiskSweeper.
    I deleted what I thought was an extra copy of Adobe Reader 9.
    Today, I tried to open an pdf file on a website and just got a dark page.
    I tried several different websites with the same result.
    I was able to open existing pdf files located on my desktop.
    I then downloaded and reinstalled both Adobe Reader 9 and Adobe Reader 10.1.3 .
    I am still unable to open and view pdf files on web sites.

  • Does anyone know how i can view PDF files using Galaxy Note 2?

    Does anyone know how i can view PDF files using Galaxy Note 2?
    This is what i have been doing;
    I click on the file i wish to view (via a portal)
    this file goes to notification widget (i drag down screen)
    notification/message says download complete
    i click on notification/message
    nows it says complete action using (here i only have 2 icon options 1= DB Text Editor 2 = HTML Viewer)
    I have installed Adobe Reader.

    Can you confirm if the downloaded file is a pdf file, that is it ends with .pdf?

  • How can I prevent a PDF file from being copied, printed or downloaded? Students should only be able to view the text and and not distribute it in any way.

    How can I prevent a PDF file from being copied, printed or downloaded? Students should only be able to view the text and and not distribute it in any way.

    You can prevent it from being printed by applying a security policy to it
    in Acrobat. The rest can't be prevented, unless you spend  a LOT of money
    on DRM protection.

Maybe you are looking for

  • Suppress the pop-up box in iCal when "The server responded with an error"

    So there are tons of questions already on this site about this pop-up error in iCal when trying to connect to Google calendars or MobileMe calendars. My issue is that the connection is fine 90% of the time, but every now and then the connection fails

  • Sent mail does not show up in Sent (airplane) mailbox

    My dad just got his first Mac. He depends on (massive amounts of) email for his work, and used Outlook on his old laptop. Switched to Mac and is using Mail.app now. All his old email is now imported (with O2M) and mostly looks fine. Except any email

  • Changing Links in Header Menu

    Hello, I was wondering what the best way is to modify the menu in the header of the portal. We would like to remove the "Mobile Devices" link and add in a "Reset Desktop" link. We are using the sampleportal with the JSPTabContainer as the default cha

  • How to Backup and Restore Apex 4.0

    Hi all, How to backup an application with all its shared component? The objective of this backup is to undo the changes I made, and also to restore it in another machine. Thanks Siera Edited by: user11976229 on Oct 8, 2010 11:12 AM Edited by: user119

  • Questions about mac

    can mac leopard be run on a windows based computer ? if so . does mac run along side windows in like a dual boot or can mac replace windows or can you have it either way ? will my drivers still work if i replaced windows vista with mac ? also are the