當前位置:首頁 » 操作系統 » linuxword轉pdf

linuxword轉pdf

發布時間: 2022-02-16 05:21:55

㈠ 如何轉換 pdf 為 Word 在 linux 環境上

對於不允許做修改的PDF文件——就是加密加了許可權的PDF,首先要去除密碼或者去除數字證書,推薦用PDF Password Remove,然後再按照下面的方法【免費】進行轉換為word文件:
方法一:用軟體PDF To Word Converter,使用之後然後有兩種結果
1、轉化出來的就是想要的word,這種情況最理想了;
2、轉化出來的word上都是圖片,需要上網找「ABBYY finereader v9」一類的文字識別軟體。ABBYY finereader v9是我見過的最強大的PDF(圖片格式或者是掃描件)轉word的軟體。它是一款OCR軟體,界面比較簡潔明,9.0和以上版本有簡體中文版的,支持100語言的識別,特別是混合多種語言識別效果也非常好:安裝完畢之後,首先把圖片上的文字識別出來,然後再對照圖片把識別錯誤的地方改過來,這樣就實現了,從JPEG文件到word的格式轉換。
方法二:在線PDF轉Word共有以下幾個步驟:
• 點擊瀏覽按鈕選擇需要轉換的PDF文件。
• 輸入需要轉換的頁碼,以逗號分割開,如果轉換所有的頁面可以跳過這一步。
• 點擊按鈕上傳文件,然後等著就可以了。
• 點擊下載鏈接把做好的文件下載到本地就可以了;
方法三:用其他軟體Wondershare PDFelement等處理。

㈡ linux下編輯word,然後將word轉換為pdf的問題

這樣折騰有什麼意義呢?如果要出 PDF,還要在 Linux 下,不如直接用 TeX。

㈢ linux伺服器怎樣將word轉pdf

unoconv -f pdf myDoc.doc

只是你需要安裝了libreoffice。

㈣ 如何在linux下實現office文檔轉成pdf

首先下載安裝unoconv採用下面任一種方法:
1)到 http://dag.wieers.com/home-made/unoconv/
下載,再安裝.
2) yum install unoconv

然後就可以用命令
unoconv -f pdf
myDoc.doc
進行轉換了.以上命令即會生成一個名為 myDoc.pdf 的 pdf
文件。

批量轉換需要結合find命令或腳本使用,使用時需注意最好使用C/S模式以加快速度:
unoconv --listener
&
unoconv -f pdf some-document.odt
unoconv -f doc
other-document.odt
unoconv -f jpg some-image.png
unoconv -f xsl
some-spreadsheet.csv

多個PDF文件的合並:
gs -q -dNOPAUSE -dBATCH
-sDEVICE=pdfwrite -sOutputFile=out.pdf
*.pdf
就會生成一個名為out.pdf的文件.但要保證當前目錄下沒有out.pdf這個文件.

㈤ linux下的word轉pdf功能已經有對外介面了么

使用虛擬列印機pdf factory即可實現,而且其他格式文件只要是能夠列印,選擇這個虛擬列印機,都可以做成PDF文件,很簡單實用,一勞永逸。

㈥ 在linux環境下,java怎麼實現從word格式轉換為pdf格式

import com.jacob.activeX.ActiveXComponent;
import com.jacob.com.Dispatch;
import com.jacob.com.Variant;

/**
* @author XuMing Li
*
* @version 1.00, 2007-4-9
*
*/
public class D2P {
private ActiveXComponent wordCom = null;

private Object wordDoc = null;

private final Variant False = new Variant(false);

private final Variant True = new Variant(true);

/**
* 打開word文檔
*
* @param filePath
* word文檔
* @return 返回word文檔對象
*/
public boolean openWord(String filePath) {
//建立ActiveX部件
wordCom = new ActiveXComponent( "Word.Application ");

try {
//返回wrdCom.Documents的Dispatch
Dispatch wrdDocs = wordCom.getProperty( "Documents ").toDispatch();
//調用wrdCom.Documents.Open方法打開指定的word文檔,返回wordDoc
wordDoc = Dispatch.invoke(wrdDocs, "Open ", Dispatch.Method,
new Object[] { filePath }, new int[1]).toDispatch();
return true;
} catch (Exception ex) {
ex.printStackTrace();
}
return false;
}

/**
* 關閉word文檔
*/
public void closeWord() {
//關閉word文件
wordCom.invoke( "Quit ", new Variant[] {});
}

/**
* * 將word文檔列印為PS文件後,使用Distiller將PS文件轉換為PDF文件 *
*
* @param sourceFilePath
* 源文件路徑 *
* @param destinPSFilePath
* 首先生成的PS文件路徑 *
* @param destinPDFFilePath
* 生成PDF文件路徑
*/
public void docToPDF(String sourceFilePath, String destinPSFilePath,
String destinPDFFilePath) {
if (!openWord(sourceFilePath)) {
closeWord();
return;
}
//建立Adobe Distiller的com對象
ActiveXComponent distiller = new ActiveXComponent(
"PDFDistiller.PDFDistiller.1 ");
try {
//設置當前使用的列印機,我的Adobe Distiller列印機名字為 "Adobe PDF "
wordCom.setProperty( "ActivePrinter ", new Variant( "Adobe PDF "));
//設置printout的參數,將word文檔列印為postscript文檔。目前只使用了前5個參數,如果要使用更多的話可以參考MSDN的office開發相關api
//是否在後台運行
Variant Background = False;
//是否追加列印
Variant Append = False;
//列印所有文檔
int wdPrintAllDocument = 0;
Variant Range = new Variant(wdPrintAllDocument);
//輸出的postscript文件的路徑
Variant OutputFileName = new Variant(destinPSFilePath);

Dispatch.callN((Dispatch) wordDoc, "PrintOut ", new Variant[] {
Background, Append, Range, OutputFileName });
System.out.println( "由word文檔列印為ps文檔成功! ");
//調用Distiller對象的FileToPDF方法所用的參數,詳細內容參考Distiller Api手冊
//作為輸入的ps文檔路徑
Variant inputPostScriptFilePath = new Variant(destinPSFilePath);
//作為輸出的pdf文檔的路徑
Variant outputPDFFilePath = new Variant(destinPDFFilePath);
//定義FileToPDF方法要使用adobe pdf設置文件的路徑,在這里沒有賦值表示並不使用pdf配置文件
Variant PDFOption = new Variant( " ");
//調用FileToPDF方法將ps文檔轉換為pdf文檔
Dispatch.callN(distiller, "FileToPDF ", new Variant[] {
inputPostScriptFilePath, outputPDFFilePath, PDFOption });
System.out.println( "由ps文檔轉換為pdf文檔成功! ");
} catch (Exception ex) {
ex.printStackTrace();
} finally {
closeWord();
}
}

public static void main(String[] argv) {
D2P d2p = new D2P();
// d2p.openWord( "c:/12.doc ");
// d2p.callWordMacro( "c:/12.docc ", "MyWordMacro ",
// new String[] { "這是調用word宏的測試程序 " });
d2p.docToPDF( "d:/12.doc ", "c:/1p.ps ", "c:/1p.pdf ");
}
}

㈦ linux下將怎麼將office文件轉換為pdf文件格式

Word07版本無需轉換,只要直接另存為pdf格式就行了。二種方法,詳細如下:
方法一、
點擊【另存為】後,在保存類型中選 PDF(*.pdf) -- 確定即可
方法二、
1. word文件打開狀態下,點擊左上角的Office按鈕(一個Office圖標的大圓圈)
2. 另存為
3. 選PDF或XPS即可。

㈧ freemark在linux上生成word以後,怎麼轉pdf

freemark在linux上生成word以後轉pdf直接另存為即可。

工具:word2013

步驟:

1、打開word2013,點擊文件,選擇另存為。選擇其他格式。

註:word2010以下版本另存為沒有pdf格式,需下載插件後,才能直接另存為pdf格式。2010以上的版本才可以直接另存為。

㈨ wps支持linux命令行下word轉pdf嗎

通過瀏覽器進入到wps官網,然後點擊右上角的"linux",進入到wps支持Linux的項目下。在該界面點擊"立即下載",進入到Linux版本的wps安裝程序下載頁面。根據個人Linux版本的位數選擇對應的rpm包,將該安裝包下載到本地。進入到安裝包存放的目錄,使用命令"yum localinstall wps-offcie-10.1.0.6634-1.i686.rpm",該命令在安裝包的同時也會將相應的依賴關系軟體安裝,這樣就不會包依賴關系錯誤。安裝完成後,通過命令"wps"可以直接打開wps,由於是首次使用所以需要同意它的用戶協議,也可以通過桌面的WPS圖標點擊打開。
然後你問題的重點來了,你用什麼轉件轉換格式?如果你使用unoconv
到github克隆unoconv 項目,並安裝
輸入命令:git clone
進入unoconv目錄,並安裝
make install
成功安裝unoconv後。先創建一個aa.docx測試文件
首先:我們來先轉docx文件到pdf,輸入命令:unoconv -f pdf aa.docx
得到結果:aa.pdf
看明白沒有,你試試看吧 看看《Linux就該這么學》 裡面有個專欄是 Linux命令大全(手冊

熱點內容
上傳文件文件夾找不到 發布:2024-09-20 00:26:32 瀏覽:914
承台箍筋加密區 發布:2024-09-20 00:26:31 瀏覽:227
筆記本什麼配置能流暢運行cf 發布:2024-09-20 00:14:19 瀏覽:951
實測華為編譯器 發布:2024-09-19 23:50:52 瀏覽:821
linux匯總 發布:2024-09-19 23:46:39 瀏覽:452
阿里雲伺服器環境搭建教程 發布:2024-09-19 23:21:58 瀏覽:837
黃色文件夾圖標 發布:2024-09-19 23:19:22 瀏覽:684
mysql資料庫導出導入 發布:2024-09-19 23:00:47 瀏覽:183
lua腳本精靈 發布:2024-09-19 23:00:41 瀏覽:659
任務欄文件夾圖標 發布:2024-09-19 22:54:25 瀏覽:101