Making .pdf files downloadable

How do I make .pdf files downloadable in my iWeb page?
I have several .pdf files on my desktop that I'd like to make available to visitors to my iWebsite for download. Please forgive me if this is "intuitively obvious." I am new to the forum and am also navigationally clumsy until I use it a while.

You either need to Zip or Compress, as it is in 10.5 and then in iWeb click on Inspector and then Hyperlink and just create a hyperlink to a file. One someone clicks the link, it will then be downloaded as a Zip file containing the pdf.

Similar Messages

  • Error while opening PDF file downloaded  from database Blob column

    Hi All,
    I am working on jdev 11.1.1.4.0.
    In my use-case I am using filedownload Actionlistner on a link to get the PDF file stored in the database in blob field. These files are being uploaded from other use-case in adf only.
    After getting the dialog box to open/save/cancel for the PDF file when i click on open then i am getting an error *'Adobe Reader could not open 'abc.pdf' because it is either not a supported file type*
    or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly docoded)' for some files , and to my surprise I am able to open some files.
    When I open these PDF files separately from desktop I am able to view the content of each and every file in adobe reader.
    I dont know where the problem exactly lies , while uploading/downloading the file . Any ideas/thoughts to resolve this issue?
    Thanks
    Kanika

    Thanks a lot Timo...!!!
    I checked the PDF file downloaded directly from the blob column in DB, there only it is corrupted so must be the problem in uploading the file. I am checking the code line by line,, but no problem in setting the file content type,size etc.
    Here is the code snippet ..
    byte[] buff;
    buff = new byte[(int)length]; -- Length is the file size
    int bytesRead = is.read(buff);
    for (int i = 0; bytesRead < buff.length; i++) {
    // int b = is.read();
    int b = is.read();
    if (b == -1)
    break;
    buff[i] = (byte)b;
    BlobDomain blobDomian = new BlobDomain((buff));
    TestVORow = (TestVORow Impl)TestVO.createRow();
    if(blobDomian != null) {
    TestVORow.setAttachment(blobDomian);
    am.getTransaction().commit();
    This seems to be Ok to me..the same issue, file is still corrupting.
    Any thoughts from your side ???
    Thanks
    Kanika
    The problem is resolved.
    Changes made are instead of
    InputStream is;
    used ... BufferedInputStream bis ;
    and after
    for (int i = 0; bytesRead < buff.length; i++) {
    // int b = bis.read();
    int b = bis.read();
    if (b == -1)
    break;
    buff[i] = (byte)b;
    bis.close(); // use this close bufferedInput Stream.
    Able to open each and every file now..Thanks for your suggestions Timo and Frank.
    Edited by: Kanika on Mar 6, 2012 3:15 AM

  • Just upgraded to Lion, can't open any pdf file downloaded from internet that was fine with Leopard. How can I overcome this obstacle ?

    Just upgraded to Lion, can't open any pdf file downloaded from the internet that was fine with Leopard before. I just got a black screen when I clicked on a pdf icon on a given internet site, and same happened with several sites that I visited. How can I overcome this obstacle ?

    Try two things with Safari not running:
    1) Launch Adobe Reader, open its preferences, select the Internet category, and check the values under "Display PDF in browser using".  If it's checked, try unchecking it.
    2) Look in /Library/Internet Plug-Ins (at the top-level of your boot volume) for something names AdobePDFViewer.plugin.  If you see such a file, try moving it to a folder named "Disabled Plug-Ins" (if such a folder exists) or onto the Desktop.
    Then see how things work.

  • How to make a PDF file downloadable on my website?

    Hi,
    I'm trying to create a PDF that can be downloaded from
    people that are on my website.
    I tried to point a link to the PDF file that's on my sever
    but all it does open the PDF file in a new window.
    How can i make it so that people can download that PDF file
    when they click on the link.
    the url to that website is
    Link">http://www.hostlyon.com/pizza-demo/[L=Link
    to website
    There will be a link on the navigation bar that says
    "download menu" . Thanks!!!

    .oO(watzursn)
    > I'm trying to create a PDF that can be downloaded from
    people that are on my
    >website.
    >
    > I tried to point a link to the PDF file that's on my
    sever but all it does
    >open the PDF file in a new window.
    >
    > How can i make it so that people can download that PDF
    file when they click on
    >the link.
    <a href="thepdf.pdf">Document Title (PDF, size in
    KB)</a>
    Micha

  • PDF files downloading as html files

    I am trying to save pdf files from a database but firefox keeps on saving them as html files instead, even when saving it shows it saving as *.pdf. I have only just fixed the problem of not being able to open the pdf files and now using adobe reader add on but now can't save the files I have opened. I need to be able to access these documents when not online. Instead of studying for the last 3 hours I have been trying to solve issues since downloading the lastest version of firefox. This was never an issue with the older version.

    Hi WinchesterBunnyMama, what exactly is your problem. Is it this issue:
    Some users are finding that an update changed the description of "Adobe Acrobat Document" to "Firefox HTML Document". The installer was supposed to add Firefox as an ADDITIONAL viewer for PDFs, not as the DEFAULT viewer. Sorry if you were affected by this glitch and hopefully they will figure out why some systems get changed this way.
    You can try this fix suggested by a user in another thread:
    # Open Adobe Reader / Acrobat*
    # Edit->Preferences
    # In the Categories column click 'General'
    # Near the bottom of the page click the button marked 'Select Default PDF Handler'
    # In the dialog, select 'Adobe Reader XI' (or Adobe Acrobat, as the case may be) and click 'Apply'
    # A Windows Configuration screen will appear. Allow it to do its stuff (takes a few minutes), then restart your computer when prompted.
    Does that work for you?
    ''*'' If you do not have Adobe Reader 11, you can install it from here: http://get.adobe.com/reader/

  • PDF File Download from a JSP

    I want to have a JSP that will be used to download/display files. I created
              a test.jsp page that tries to return a test.pdf page. Whenever I run it,
              the browser displays some characters and then hangs, but never displays the
              pdf file. If I browse directly to the pdf file it displays fine in the
              browser. What am I doing wrong in this JSP page:
              <%@ page import="java.io.*" %>
              <%
              String mimeType = "application/pdf";
              response.setContentType(mimeType);
              try
              FileInputStream fis = new
              FileInputStream("d:\\work\\internet\\appserver\\presentation\\rdoc\\test.pdf
              ServletOutputStream sos = response.getOutputStream();
              System.out.println("Begin...");
              int i = fis.read();
              while(i != -1)
              sos.write(i);
              i = fis.read();
              sos.flush();
              sos.close();
              fis.close();
              System.out.println("End...");
              catch(Exception e)
              System.out.println(e);
              %>
              

    The JSP will send new lines etc. to the output stream because you have new
              lines in your JSP.
              All right, since you asked, I will have to post my secret source:
              ----- Original Message -----
              From: "Erik Lindquist" <[email protected]>
              Newsgroups: weblogic.developer.interest.jsp
              Sent: Wednesday, June 28, 2000 6:20 PM
              Subject: How to dynamically display images in JSPs
              >
              > This took a little while to figure out so I thought I'd share. After
              > doing some research I was led to the following approach on how to load
              > images from an Oracle database into a JSP:
              >
              > The "main" JSP:
              >
              > <HTML>
              > <head>
              > <title>Image Test</title>
              > </head>
              > <body>
              > <center>
              > hello
              > <P>
              > <img border=0 src="getImage.jsp?filename=2cents.GIF">
              > <P>
              > <img border=0 src="getImage.jsp?filename=dollar.gif">
              > <P>
              > world
              > </body>
              > </HTML>
              >
              >
              > And this is the image getter:
              >
              > <% try {
              > response.setContentType("image/gif");
              > String filename = (String) request.getParameter("filename");
              > java.sql.Connection conn =
              > java.sql.DriverManager.getConnection("jdbc:weblogic:pool:orapool"); //
              > connect to db
              > java.sql.Statement stmt = conn.createStatement();
              > String sql = "select image from testimage where filename = '" +
              > filename + "'";
              > java.sql.ResultSet rs = stmt.executeQuery(sql);
              > if (rs.next()) {
              > byte [] image = rs.getBytes(1);
              > java.io.OutputStream os = response.getOutputStream();
              > os.write(image);
              > os.flush();
              > os.close();
              > }
              > conn.close();
              > }
              > catch (Exception x) { System.out.println(x); }
              > %>
              >
              >
              > The thing to note is that there are no <%@ page import="..." %> or <%@
              > page contentType="..." %> tags - just the single scriptlet. It
              > seems that for every "<%@" the weblogic compiler sees it puts
              > out.print("\r\n"); statements in the generated java source.(???) I
              > don't know much about how browsers work but I think that once it sees
              > flat ascii come at it it treats everything that follows as text/plain
              > which is incorrect for the binary stream that's being sent. Another
              > work around was to set out = null; but that's kind of ugly and might
              > produce server errors. The real fix is to write a bean to handle images
              > which I'll work on next (does anybody have any hints on how to do
              > that?)
              Peace.
              Cameron Purdy
              http://www.tangosol.com
              "Jesse E Tilly" <[email protected]> wrote in message
              news:[email protected]...
              > [email protected] (Cameron Purdy) wrote in
              > <[email protected]>:
              >
              > >Your import will always cause junk to be sent before the PDF. You
              > >should do this as a servlet, not a .jsp.
              >
              > Really? What's the difference between JSP and Servlet as far as writing
              to
              > the response object is concerned?
              >
              > Btw, I forgot to mention that the setContentType should be done as late as
              > possible. It begins the response.
              >
              > Jesse
              

  • When I open a link in a pdf file downloaded by Foxfire, it uses Safari, not Foxfire, although I have designated Foxfire as my default browser

    When I download a pdf file with Foxfire and then click on a link therein, it calls upon Safari, not Foxfire, to get that link. This causes some complications. I have designated Foxfire as my default browser, so this should not happen. Is this a fault of Adobe or something else?
    == This happened ==
    A few times a week
    == some time ago

    -> Tap ALT key or press F10 to show the Menu Bar
    -> go to Help Menu -> select "Restart with Add-ons Disabled"
    Firefox will close then it will open up with just basic Firefox. Now do this:
    -> Update ALL your Firefox Plug-ins https://www.mozilla.com/en-US/plugincheck/
    -> go to View Menu -> Zoom -> click "Reset" -> Page Style -> select "Basic Page Style"
    -> go to View Menu -> Toolbars -> unselect All Unwanted toolbars
    -> go Tools Menu -> Clear Recent History -> '''Time range to clear: select EVERYTHING''' -> click Details (small arrow) button -> place Checkmarks on '''Cookies, Cache''' -> click "Clear Now"
    -> go to Tools Menu -> Options -> Content -> place Checkmarks on:
    1) Block Pop-up windows 2) Load images automatically 3) Enable JavaScript
    -> go to Tools Menu -> Options -> Security -> place Checkmarks on:
    1) Warn me when sites try to install add-ons 2) Block reported attack sites 3) Block reported web forgeries 4) Remember Passwords for sites
    -> Click OK on Options window
    -> click the Favicon (small drop down menu icon) on Firefox SearchBar (its position is on the Right side of the Address Bar) -> click "Manage Search Engines" -> select all Unwanted Search Engines and click Remove -> click OK
    -> go to Tools Menu -> Add-ons -> Extensions section -> REMOVE All Unwanted/Suspicious Extensions (Add-ons) -> Restart Firefox
    You can enable your Known & Trustworthy Add-ons later. Check and tell if its working.

  • Acrobat Reader can't open PDF file downloaded from the internet

    I downloaded the following pdf file from the internet and saved it to the desktop. When I tried to open the file I got a message saying Acrobat couldn't open it. I do not have trouble opening other PDF files. There is something about opening certain PDF files from the internet that is causing this. Is there a setting in the PDF preferences that is causing this or some security setting.
    http://www.porteverglades.net/include/content/docs/media/Port-map-2009.pdf

    It seems that Safari is unable to export the document as a PDF because the exported file was zero bytes. That's why I couldn't open it. I tried Firefox and did a File>Save. It saved the file as a PDF which I was able to open. So proglem solved.

  • ERROR OPENING PDF FILES DOWNLOADED FROM INTERNET

    I have a problem when I download a pdf file from Internet and I try to open in throughout Acrobat Reader. It appeared one error saying "The file path is not valid". What can I do?.

    Hi there,
    I found this can happen if the file does not download correctly. When this happens, simply try redownloading the file and wait until it has fully downloaded before doing anything else with the browser.
    Does that work now?
    If you want to thank someone for their comment, do so by clicking the Thumbs Up icon.
    If your issue is resolved, don't forget to click the Solution button on the resolution!

  • Pdf files download with .file extension thus wont open as a pdf

    Hi , when I try to download a pdf document with Firefox, the file downloads but add a .file extension thus wont open as a pdf.
    I do not know if this is relevant but if you try to get the file to open with adobe viewer by telling the pc to open this type of file always with adobe viewer, nothing happens the tick box is greyed out, however if I double click the adobe viewer icon it will quite happily open the downloaded file as a pdf

    The next time you download, STOP, and double check the full name of the file.
    Firefox would not change the file name. But an add-on could.

  • PDF file downloading from server to client

    Hello,
    I am a newbie to Oralce UCM. Writing a component to merge some PDF files and allow user to save/open it on client side.
    The file downloaded is of 0 bytes and when opened it says -
    Adobe Reader could not open the the file because it is either not a suppported file type or because the file is damaged(It was sent as an email attachment and was not correctly decoded)
    this.m_binder.m_contentType = "application/pdf";
    this.m_binder.m_clientEncoding = "utf-8";
    DataStreamWrapper dataStreamWrapper = this.createNewDownloadStream();
    dataStreamWrapper.m_clientFileName = "MergedPDF";
    dataStreamWrapper.m_inStream = mergedPDF.getDocumentInputStream();
    dataStreamWrapper.m_inStreamActive = true;
    dataStreamWrapper.m_dataType = "application/pdf";
    try {
    this.m_httpImplementor.sendStreamResponse(this.m_binder, dataStreamWrapper);
    } catch (ServiceException e) {
    e.printStackTrace();
    Some clue would really help :)
    Thanks,
    Fauzia

    Hi Jiri,
    I have created and HCSP page where data is being populated dynamically. User may select some of the files from this page through checkbox. Page also has a download button which when clicked will merge all the selected documents and let the user open/save it.
    Information like Native URL, docName is passed on to the content server when the component is called (download button-click).
    Merging the PDFs, I have used a custom utility which takes url as a parameter and returns back the inputstream of merged PDF.
    And last, I have used DataStreamWrapper to send this inputstream back to the client as an attachment which can be read by IE.
    Also, I thought at first to use HTTPHeader where parameters like content-disposition, content-type can be set. But UCM already provides a better way to achieve this i.e. through DataStreamWrapper.
    public class MergePDF extends Service {
         public List<PdfDocumentSource> createPdfDocumentSourceList(
                   String... urlStrings) throws MalformedURLException {
              List<PdfDocumentSource> sourceList = new ArrayList<PdfDocumentSource>(
                        urlStrings.length);
              for (String url : urlStrings) {
                   URL urlDoc = new URL(url);
                   PdfDocumentSource pdfSource = new UrlPdfDocumentSource(urlDoc);
                   try {
                        System.out.println("URL in create method - "+urlDoc);
                        System.out.println("PDFSource input stream - "+pdfSource.getDocumentInputStream().available());
                   } catch (IOException e) {
                        e.printStackTrace();
                   sourceList.add(pdfSource);
              return sourceList;
         public void mergeAll() throws DataException, ServiceException {
              Properties property = this.m_binder.getLocalData();
              String urlStrings = "";
              List<PdfDocumentSource> sourceList;
              PdfDocumentSource mergedPDF = null;
              urlStrings = property.getProperty("webURL");
              String[] urls = urlStrings.split(";");
              try {
                   sourceList = createPdfDocumentSourceList(urls);
                   PdfMerge merge = new PdfMerge(sourceList, true);
                   try {
                        mergedPDF = merge.createMergedPdf();
                        transferToClient(mergedPDF);
                   } catch (PdfProcessingException e) {
                        e.printStackTrace();
              } catch (MalformedURLException e) {
                   e.printStackTrace();
              System.out.println("hello123");
              System.out.println("URLS - "+urlStrings);
         public void transferToClient(PdfDocumentSource mergedPDF){
              this.m_binder.m_contentType = "application/pdf";
              this.m_binder.m_clientEncoding = "utf-8";
              DataStreamWrapper dataStreamWrapper = this.createNewDownloadStream();
              dataStreamWrapper.m_clientFileName = "MergedPDF.pdf";
              dataStreamWrapper.m_inStream = mergedPDF.getDocumentInputStream();
              //dataStreamWrapper.m_inStreamActive = true;
              dataStreamWrapper.m_dataType = "application/pdf";
              try {
                   this.m_httpImplementor.sendStreamResponse(this.m_binder, dataStreamWrapper);
              } catch (ServiceException e) {
                   e.printStackTrace();
              * StringBuffer sb = this.createHttpResponseHeader();
              sb.append("Content-Type: application/pdf");
              sb.append("Content-Disposition: attachment; filename=fname.ext");
              //m_headerStr
              this.m_headerStr = sb.toString();
    }

  • Pdf file download problems

    I use the Adobe Creative Cloud file storage system to store and also share pdf files with my customers. When I need to share a pdf file, I create a link for the folder containing the correct pdf files. Then I paste the link to that folder into the body of an email that I then send to the customer. Often I will paste several different links into the same email. Normally, when a customer downloads, they simply click on the link, then they are directed to the folder contents. They then click on each individual file within the folder...on the next page there is a download drop down menu button at the left of the screen.....the dropdown menu normally give 3 or 4 options to download as: PDF, jpg, png and ease. For some reason the last week, at least 50% or more of my customers are not able to download.... they are telling me that the drop down menu does not give them the pdf option. I talked with Adobe customer support but the lady didn't seem to have the foggiest idea why this was happening or how to fix it...she said she would look into a solution and call me back but she never did. This happened about a month ago too and the problem seemed to correct itself a day or two later.... and again no one at Adobe could tell me what was up or how to fix the problem. Anyone out there experienced anything like this? Or maybe I am the only one using this service to share PDF files?

    Having the exact same problem, really frustrating. It's not working with new files I put up on the Cloud and even the files that were working previously are not downloadable as PDFs. I think Adobe has broken something…oddly when I'm logged in with my account, the download as PDF option is there, if I log out and try to get the file, then it's not there. I even tried to create another Adobe account and it's not possible to download when logged in using that account either.
    I wish that the Cloud sync and sharing worked more reliably, but it's frequently down, not working completely, not building previews etc.
    Really frustrating.

  • Make a pdf file downloadable in iWeb

    I have nearly completed my website in iWeb. It is still under construction and I've not published it yet.  I have PDF files that I want to make downloadable by clicking a hyperlink on my website. I've followed the instructions correctly, as best I can tell, by using the link to "File" in the Link inspector but I don't think that its working. I am able to pick that file from the Link Inpsector without any problems. When the hyperlink is enabled and the link is clicked, nothing happens. Other hyperlinks that I have on my website that are linked to external web pages work fine. When clicked Safari goes to them like it is supposed to.
    The PDF files I have are on my local HDD in a folder I created for them. I have it named iWeb support. Using iWeb 3.0.4. This is the first website I've made and perhaps when it is published it'll work like it's supposed to but I'm worried that it isn't working while under construction. Any help greatly appreciated.

    IX Webhosting and HostExcellence are owned by the same people and offer the same prices, features. The only difference between the two is that HostExcellence has a toll free number for users outside of the US.  Not a big difference unless you don't live in the US.
    With that being said this may be of interest to you: Life After MobileMe.
    OT

  • Opening PDF files downloaded from IE 7

    Whenever a new PDF file is downloaded via IE 7 my Adobe Reader will not open it and I receive an error msg. indicating that a version of Adobe Reader is alaready running with directions to close the app.

    You downloaded the PDF documents to your local disk?  Or you open them directly in IE7?  Did you try to close the app (AcroRd32.exe) from Task Manager?
    [topic moved to Adobe Reader forum]

  • IE9 Prohibits .pdf File Download, Uninstall Does Not Correct

    I had been using IE8 with Win7 SP1 Home to download bank statement pdf files (.asp) from an https: site successfully for months.  I installed IE9, but then could no longer download those pdf files, receiving a "blank page" URL instead.  Furthermore,
    I could no longer access the NOAA weather satellite image loop sites after the IE9 installation, instead received a site error message which closed IE9.  I uninstalled IE9, which then reverted to IE8 as expected.  After the IE8 re-installation the
    bank statements started to download but then stopped with no images showing, although the correct URL was shown in the address line instead of the "blank page" URL.  However, the NOAA weather satellite image loops do execute correctly with the re-installed
    IE8.
    Is there some default setting that needs to be set, or reset to enable the .asp (pdf) files to download correctly again?
    Thank You.

    Hi,
    Have you load the latest Flash Player?
    http://get.adobe.com/shockwave/otherversions/
    Go to Manage add-ons and enable Shockwave Flash Object.
    Also refer to this KB to check the hosts file.
    http://support.microsoft.com/kb/972034
    Regards,
    LS

Maybe you are looking for