.pdf and .doc files corrupted on 2 Macs?

On an iMac and a shared Mac Mini, a number of PDF and DOC files have all of a sudden gotten corrupt. Some of these have not been modifed in 2 years but all of a sudden are corrupt. I've tried Data Rescue and cannot find anything online about these multiple files getting corrupted. I've rebuilt permissions and done various ML Cache Cleaner options to no avail. Anyone heard of anything like this? It just happened all of a sudden on 2 computers. At first I figured the first computer had the partition going bad but that doesn't explain 2 computers at once.

Dear M.V,
with the same above configuration, now I am able to open pdf's which are having a size lessthan 2 MB.
below is the access log
127.0.0.1 - - [13/Feb/2008:15:04:36 +0530] "GET /pdfcheck.php?file=CampusMap HTTP/1.1" 200 2000000 below is the error log
[13/Feb/2008:15:10:49] warning ( 3288):  for host 127.0.0.1 trying to GET /pdfcheck.php, finish-response reports: HTTP2228: Response content length mismatch (2000000 bytes with a content length of 2535786)  php code
<?php
if(!isset($_GET['file']))die('LOGGED! no file specified');
$file_path=$_SERVER['DOCUMENT_ROOT'].'/pdfs/'.strip_tags(htmlentities($_GET['file'])).'.pdf';
  $file_name = $_GET['file'];
$mm_type="application/pdf";
header("Cache-Control: public, must-revalidate");
header("Pragma: hack");
header("Content-Type: " . $mm_type);
header("Content-Length: " .(string)(filesize($file_path)) );
header('Content-Disposition: inline; filename="'.$file_name.'"');
header("Content-Transfer-Encoding: binary\n");
readfile($file_path);
?>Thanks
madhu

Similar Messages

  • Previewing pdf and doc files

    Does anyone know the best way to go about showing pdf and doc files as a document preview within a Swing panel?
    Thanks in advance for your advice!
    Sarah

    You can do it with iText PDF. Go through it's tutorial. It is easy.
    iTextPDF

  • Attach .pdf and .doc files to Reply emails.

    I am desperately trying to figure out how to attach .pdf and .doc files to Reply emails in the Mail app. I have downloaded GoodReader, but when I go into "Manage Files" and choose "Open in...", Mail is not one of the apps listed for me to choose from (only Quickoffice and iBooks are listed, that's it). My Gmail account is pushed to the Mail app, if that's relevant at all.
    I'm hoping to be able to attach documents to Reply emails in the Mail app, but if I have to do it using my web-based email, that's better than nothing. I just really need to be able to attach them to Replies, and not compose a new email from scratch.
    I'd REALLY appreciate any help with this!
    Thanks.

    I thought I might be able to figure out a clever work-around by using cut and paste from a new message but this did not work as expected. I have been using the MobileMe iDisk app to store pdf files and then just mailing out the links.  I believe my cut and paste method would have worked with this, however I've got about a year now to figure out another way to do this if it is not included in Apple's new cloud service. This has actually been a better as I need to worry less about file size and don't need to have the files stored on the device.
    You may want to look into what on-line file storage solutions are out there and if they have the ability to send links to files to colleagues, possibly with password protection.

  • Can i view and edit PDF and .DOC file on iphone?

    Actually I got 2 question to ask,
    firstly have anybody got any luck to view PDF and .DOC file on Iphone because i have been trying for aged but there was no luck for me. I'm not talking about went to a email that contain a PDF or .DOC file but something like going to a website that let me able to download a PDF/.DOC. When I tried to download the file, safari keep saying that "It can not be download"??
    secondly, when is that going to be available to install third-party application to iphone such as Skype, IM+..
    appreciated everybody.

    You cannot download anything on the phone as it is not supported
    Third party applications support will start after the SDK(software development kit) is released in February

  • Opening attached .pdf and .doc files

    I am having a mental moment and can't figure out how to
    (attach to button) import .pdf or .doc files so that they open when
    the project is published. The buttons are linked to files on my
    computer...when I publish, Captivate knows the files are there and
    tells me:
    "The files/projects listed below are linked to the open
    project. The linked files/projects may require exporting.
    It is also important to copy all referenced files and
    projects with their corresponding HTML files to the output folder."
    1. How do I export the linked files?
    2. What output folder is it refering to?
    Thanks in advance...I'm obviously new to captivate.
    js

    Hi again js
    Certainly linking to the documents from MenuBuilder is one
    approach.
    Are you saying the links from Captivate are failing you? You
    may wish to try a technique I outlined in
    this
    thread.
    Cheers... Rick

  • Is it possible to batch print .pdf AND .doc files together?

    I need to let users to batch print a set of files that includes both .PDFs and .DOCs. Since <cfprint> allows .PDF files only, what would you suggest?
    Thanks!

    el_sim wrote:
    Unfortunately, it's not an option because I need to allow users to batch print and I have no info about their network printer configuration
    That raises a large RED Flag that you may be misunderstanding the <cfprint...> functionality.  <cfprint...> can NOT print to a printer that is configured to the clients computer.  So if that is what you are looking to do, you need to be looking at Client side technology.  But be aware, that current, common, browser based web applications generally have very limited connections to client hardware.  If you are willing to get into Flex, Flash, Air (or another company's technologies) you could probably do more.  But HTML and JavaScript currently do not have much access to the hardware of a client computer.
    The <cfprint...> tag is designed to send a print job from the SERVER running the ColdFusion application to a printer connected to that server.  IF you are writing programs with no knowledge of the server network configurations (I.E. an application meant to be sold to various customers) this becomes much more difficult to do.  But if you are writing a CFML application to be run on a known network, which is what many of us do, then it should be pretty easy to know what printers are connected to the server running ColdFusion and figure out what capabilities those printers have.

  • App with hadwriting notes for .pdf and .doc files?

    Is there and app that aloud to makes HANDWRITING NOTES (with Stylus, using different colours, sizes, etc) in files .pdf or .doc???
    I really need something like Paperpad App, to make notes while reading.
    Thank you.

    So...there is no app for handwrite in a .doc or in a .pdf?????????

  • Converting .pdf and .doc files into .txt file

    Can anyone here please tell me (a humble programmer) if there's anything in Java to help me accomplish the above, i.e. to strip the markup of these files.
    Or perhaps someone might know if there are programs already out there that can?
    Any pointers or advice would be great, thanks

    PDF: iText (www.lowagie.org or .com) and FOP (at apache.org, or maybe jakarta.apache.org) are the de facto standards for writing PDF in Java, but I don't think either of them will help you with reading it. You might check out etymon. I think that reads PDF. Or you could google for java pdf reader
    Doc: Check out POI, again at either jakarta or apache.

  • Best way to view .pdf and .doc files on an iPhone

    thank you if you know and are willing to post - cheers

    ok, email attachments definitely worked, was able to read .pdf files for sure.
    Problem is those emails, a week later, are buried under 100 new ones. VERY INCONVENIENT.
    This is how far the iPhone has come in 18 months ?
    The Google phone is starting to look very interesting. . .

  • Why can't I convert .odt and .doc files to .pdf?

    why doesn't my reader say it can't convert .odt and .doc files to .pdf?

    ...or a subscription to PDF Pack?  See this document for supported file types: http://forums.adobe.com/docs/DOC-1496
    What exactly happens when you try to convert such a doc?

  • I have an I-Mac 10.4.11 How can I convert my cwk files to pdf or doc files?

    I would like to convert my CWK files into pdf or doc files. How can I do this?

    Hi Herman,
    Is this a G4 iMac?
    Do you have Classic/OS9 installed?
    If so AppleWorks may convert it, & Print2PDF in Clasic or OS9.

  • How do I stop Safari from displaying .rtf and .doc files?

    I have placed a number of .rtf and .doc files on my website for downloading. I've notice that my other browsers download the actual file when I type in the exact web address to where they are stored, whereas Safari just displays the text in Safari--there's no physical file download. What can I do to force Safari to download the physical file? (Am I not storing the file for download properly?)

    Hello jtenny,
    Welcome to the Discussions.
    I had a similar problem with Safari opening .pdf files. It went away when I went into the following folder: Your Home Folder/Library/Internet Plug-ins, and dragged out any files that looked as if they might make a difference, just one at a time, onto the Desktop. (N.B. I did not Trash them; and if removal made no difference, I replaced the file into the Plug-ins folder.) You will have to restart Safari on each occasion; and on a couple of occasions I found that re-setting Safari (Safari Menu) was necessary to give the application a start-from-scratch with each download attempt.
    That's a somewhat makeshift way of approaching it; but provided you don't trash the plugins, and provided you restore those that make no difference, it can't do any harm -- within my experience anyway.
    All good wishes from Ireland
    Martin
    If you found that this contribution helped to answer your question, please consider awarding some points. Why reward points?
    Powerbook 15-inch G4 1GHz   Mac OS X (10.4.8)   Several veterans that go on and on. 40gig, 3rd generation iPod

  • Can not open .pdf or .doc files in mail

    Every time I receive an email with a pdf or .doc file attached I can never open it as I get a message telling me that the file was not recognised or that the file is invalid. Even if I select to open using Adobe for the pdf I get the same.
    Any help gratefully received. I've always had this problem and get round it by viewing these emails online instead. But it's not as convenient of course.

    G'day jbglass,
    I had the same problem, getting the same error message etc. I solved the problem by going to Google Chrome and using that to download the file ( a pdf brochure in my case).  That worked OK.  Hope this helps.
    fitzlefrog

  • To open a Excel and Doc file inside the AIR application

    How to open a Excel and Doc file inside the AIR application.  I have opened the PDF file inside the AIR application.  But i got stuck in opening the Exce and Doc file.  Please help me in this issue.

    AIR does not support this inherently. However, you could write code to parse these file formats. For example, the following is an ActionScript 3.0 library for reading and writing Excel files:
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=1375018

  • How To Store pdf or doc file in Oracle Database using Java Jdbc?

    can any one help me out How To Store pdf or doc file in Oracle Database using Java Jdbc in JSP/Serlet? i tried like anything. using blob also i tried. but i am able 2 store images in DB not files. please if u know or else if u have some code like this plz send that to me, and help me out plz. i need that urgent.

    Hi.. i am not getting error, But i am not getting the original contents from my file. i am getting all ASCII vales, instead of my original data. here i am including my code.
    for Adding PDF in DB i used image.jsp
    Database table structure (table name. pictures )
    Name Null? Type
    ID NOT NULL NUMBER(11)
    IMAGE BLOB
    <%@ page language="java" import="java.util.*,java.sql.*,java.io.*" pageEncoding="ISO-8859-1"%>
    <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <%
    try{
         Class.forName("oracle.jdbc.driver.OracleDriver");
         Connection con=DriverManager.getConnection("jdbc:oracle:thin:@192.168.1.135:1521:orcl","scott","tiger");
         PreparedStatement ps,pstmt,psmnt;
         ps = con.prepareStatement("INSERT INTO pictures VALUES(?,?)");
    File file =
    new File("D:/info.pdf");
    FileInputStream fs = new FileInputStream(file);
    ps.setInt(1,4);
    ps.setBinaryStream(2,fs,fs.available());
    int i = ps.executeUpdate();
    if(i!=0){
    out.println("<h2>PDF inserted successfully");
    else{
    out.println("<h2>Problem in image insertion");
    catch(Exception e){
    out.println("<h2>Failed Due To "+e);
    %>
    O/P: PDF inserted successfully
    i tried to display that pdf using servlet. i am giving the code below.
    import java.io.IOException;
    import java.sql.*;
    import java.io.*;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class DispPDF extends HttpServlet {
         * The doGet method of the servlet. <br>
         * This method is called when a form has its tag value method equals to get.
         * @param request the request send by the client to the server
         * @param response the response send by the server to the client
         * @throws ServletException if an error occurred
         * @throws IOException if an error occurred
         public void service(HttpServletRequest request, HttpServletResponse response)
                   throws ServletException, IOException {
              //response.setContentType("text/html"); i commented. coz we cant use response two times.
              //PrintWriter out = response.getWriter();
              try{
                   InputStream sPdf;
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                        Connection con=DriverManager.getConnection("jdbc:oracle:thin:@192.168.1.135:1521:orcl","scott","tiger");
                        PreparedStatement ps,pstmt,psmnt;
                   psmnt = con.prepareStatement("SELECT image FROM pictures WHERE id = ?");
                        psmnt.setString(1, "4"); // here integer number '4' is image id from the table.
                   ResultSet rs = psmnt.executeQuery();
                        if(rs.next()) {
                   byte[] bytearray = new byte[1048576];
                        //out.println(bytearray);
                        int size=0;
                        sPdf = rs.getBinaryStream(1);
                        response.reset();
                        response.setContentType("application/pdf");
                        while((size=sPdf.read(bytearray))!= -1 ){
                        //out.println(size);
                        response.getOutputStream().write(bytearray,0,size);
                   catch(Exception e){
                   System.out.println("Failed Due To "+e);
                        //out.println("<h2>Failed Due To "+e);
              //out.close();
    OP
    PDF-1.4 %âãÏÓ 2 0 obj <>stream xœ+är á26S°00SIá2PÐ5´1ôÝ BÒ¸4Ü2‹ŠKüsSŠSŠS4C²€ê P”kø$V㙂GÒU×713CkW )(Ü endstream endobj 4 0 obj <>>>/MediaBox[0 0 595 842]>> endobj 1 0 obj <> endobj 3 0 obj <> endobj 5 0 obj <> endobj 6 0 obj <> endobj xref 0 7 0000000000 65535 f 0000000325 00000 n 0000000015 00000 n 0000000413 00000 n 0000000168 00000 n 0000000464 00000 n 0000000509 00000 n trailer <<01b2fa8b70ac262bfa939cc786f8770c>]/Root 5 0 R/Size 7/Info 6 0 R>> startxref 641 %%EOF
    plz help me out.

Maybe you are looking for

  • Activate data in ODS

    Hi Gurus, Im loading data from ods to ods thru full update and after that I have to activate that ODS, Kindly let me know the steps for activating the ODS, right click on the ods and press activate data n  ods or before i have to do Update ods in dat

  • Windows 8.1 with Itunes HD Playback

    Hi, I have recently upgraded to 8.1 and been keeping on top of the numerous itunes updates, However now itunes stutteres when playing HD Video from the itunes store, and the audio lags and stutters, Ive Updated to the latest and ive re-installed. Qui

  • Source system creation in BW -  Please help

    Hi, Can anyone send the step by step instruction (including RFC connection) for creating a source (R/3) system in BW. Please help. Email Id: [email protected] Thanks, David.

  • After upgrading, font in google is FAT and UGLY

    *blocked by the greatwall, google hongkong-ing so after upgrading to Mountain Lion, I've tried to search around and learnt a new term called font conflict, I'm not sure if it is a font conflict, however, I truly can't bear with seeing this ugly and f

  • Information java 1.6 gui

    i would like to know if somebody know if java gui will be more simple with java 1.6 i very easy to create a gui with delphi, vb, qt designer.... it's more complex with java? does gui speed will be better? thanks