zoukankan      html  css  js  c++  java
  • word文件转换成PDF格式时报错:A table in this document has become corrupted(该文档中包含一个错误的表)

    解决办法:(请依次尝试一下办法,不过)--通常这种情况发生在word文件很大而且含图片的时候。

    1.尝试能否将word文件顺利存为RTF格式以便严重文档本身是否有错误。
    2.Try turning off the "Enable Accessibility and Reflow with Tagged Adobe PDF" in the PDFMaker macro to correct the problem

    3.当Adobe转换一个DOC文件到PDF文件时,它首先将文档转换成RTF格式,检查C:\Documents and Settings\(Name)\Local Settings\Temp\ 目录,

    你会发现很多512Mb的PdM***.tmp文件,这些就是Adobe试图创建的RTF格式文件,当这些文件太大(超过512Mb)时就报错了。

    原因是因为当向word文档插入一个图片时,图片在word文档中被存了2份,1份是GIF/PNG/JPEG格式,另一份是WMF格式。

    解决办法是:禁止word保存WMF格式的图片。--需要修改注册表。

    I had exactly the same error message (and using Word 2003 / Acrobat 7).  I was only trying to convert a 135 page manual (and keep the accessibility tags in tact).  The Word document itself is only 8.5mb.

    When Adobe converts a .doc file to a PDF, first it converts the document to an RTF.  It took me all day today of testing & searching, but I tracked my issue down to the RTF file being too large. 

    When that corrupted table error happens, check your C:\Documents and Settings\(Name)\Local Settings\Temp\ directory.  See any 512mb (524,287kb) PdM***.tmp files?  Those are the RTF files it's attempting to create.  When they get to be too big (524,287kb) it throws an error.

    The problem is that when you insert an image into an MS Word document, two copies of the image are saved in the document.  One copy is the GIF/PNG/JPEG - the other is a WMF (Windows Metafile).

    The solution is to have MS Word disable the saving of the WMF image into the document.  It is a new registry entry, so if you're not familiar I would suggest asking your IT person for help.  Below is the URL to the article that has the solution:

    http://en.allexperts.com/q/Microsoft-Word-1058/Image-Insertion-Word-2003.htm

     参考:

     I have documents (forms mostly)that are about 200K or less in size. I take an image, such as a .jpg that I can paste into a blank document and the resulting document is like 37K. Paste two copies of the imagine in and this is maybe 58K. So not so large.

    But when I paste these images (logos) into my 200K size forms the resulting file is about 950K. I have about fifty of these and all the same. The 200 + 35 = 950K. My math is not working out.

    Thoughts?

    This makes it very, very difficult to email these large files.

    Thanks,

    Jerry Naekel

    Get the answer below


    Answer
    Hi Jerry,

    I can empathize with you since I also encountered a similar problem. There isn't a good solution that I know of but see below for some ideas.

    Since you are going to email the documents this will make the job a little harder.

    There are a limited ways to decrease file size, here are a couple from the Microsoft Mavens:

    File Size with Graphics By default, Word embeds pictures in a document.

    You can reduce the size of a file by linking a picture.

    In the Insert Picture dialog box (Insert menu, From File submenu), click the picture, click the arrow to the right of the Insert button, and then click Link to File.

    While you can't edit the picture, you can see it in your document and print it when you print the document.

    Depending on your printer, printing directly to the printer may help.

    File Size Increases with EMF, PNG, GIF, or JPEG Graphics

    When you save a Word document containing an EMF, PNG, GIF, or JPEG graphic as a different file format (for example, Word 6.0/95 (*.doc) or Rich Text Format (*.rtf)), the file size of the document may dramatically increase.

    For example, a Word 2000 document containing a JPEG graphic saved as Word 2000 may have a file size of 45,568 bytes (44.5KB). However, when you save this file as Word 6.0/95 (*.doc) or Rich Text Format (*.rtf), the file size may grow to 1,289,728 bytes (1.22MB).

    This functionality is by design in Microsoft Word 2000. If an EMF, PNG, GIF, or JPEG graphic is inserted into a Word document, when the document is saved, two copies of the graphic are saved in the document. Graphics are saved in the applicable EMF, PNG, GIF, or JPEG format and are also converted to WMF (Windows Metafile) format.

    To prevent Word from saving two copies of the graphic in the document, and to reduce the file size of the document, add the ExportPictureWithMetafile=0 string value to the Windows registry using the following steps:

    1.   Quit Word and all Microsoft Office programs.
    2.   On the Windows Start menu, click Run.
    3.   In the Open box, type regedit and click OK.
    4.   Go to and select the following registry key:
    HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Options

    NOTE: To access the Options registry key, you need to expand the various folders by either double-clicking each folder or clicking the plus sign (+) to the left of the folders.

    5.   With the Options folder (key) selected, point to New on the Edit menu and click String Value.
    6.   Type ExportPictureWithMetafile and press ENTER.

    NOTE: There are no spaces in the string value name.

    7.   With the string value ExportPictureWithMetafile selected, click Modify on the Edit menu.
    8.   In the Value data box, type 0.

    NOTE: Type a zero for the Value data.

    9.   Click OK.
    10.   On the Registry menu, click Exit.

    Now, when you save a Word document containing an EMF, PNG, GIF, or JPEG graphic in a different format (for example, Word 6.0/95 (*.doc) or Rich Text Format (*.rtf)), Word does not retain two copies of the graphic and does not dramatically increase the file size of the document as compared to the Word 2000 version of the file.

    Good Luck.

    Dale :-)

  • 相关阅读:
    "LC.exe" exited with code -1 错误
    GridControl的用法(1)
    oracle建库及plsql建表空间的用法
    sql server还原数据库文件(.bak)常见问题解决办法笔记
    ubuntu下安装deb包
    ubuntu下安装五笔输入法
    ubuntu下安装codeTyphon
    centos7下源码安装lazarus
    后台对Json数据加密、解密
    Http请求纯后台简单实现分页并返回JSON格式
  • 原文地址:https://www.cnblogs.com/jjkv3/p/1364684.html
Copyright © 2011-2022 走看看