導航:首頁 > 文檔加密 > asposewordpdf

asposewordpdf

發布時間:2022-10-02 13:52:59

『壹』 Aspose pdf和word轉換

需要使用「aspose-words」包,大小為13M,默認選項轉換:

使用最新版19.3,按照API文檔里說明的方式去轉換,崩潰:

看到論壇上官方說要使用臨時License解鎖所有功能,申請並且添加認證成功:

但還是崩潰;最後按照首頁廣告里介紹寫的方式去轉換,崩潰:

不太可能吧!已經發帖求助官方。

最後論壇上又全部翻了一遍,android端的討論很少,但是發現一位老哥遇到了同樣的問題,官方的答復來看確實是有BUG:

最後的最後,嘗試了舊版本,18.6,好吧,也還是崩潰;

回到之前調研的競品com.hun.androidpdfchanger上,發現其PDF轉word用的是在線的........

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

linux環境下,word格式轉換為pdf格式
word轉換到PDF的步驟就相對簡單了,我們只需要安裝一款虛擬列印機軟體「Virtual Pdf Printer」即可,它可以將你編輯好的word文檔直接輸出為PDF文件格式。

安裝後在word中點擊「打開」→「列印」,
在「列印機名稱」中會看到多了一個「Virtual Printer」選項,
選中它,點擊確定後(未注冊版本有10秒的等待時間),
彈出「保存PDF文件」對話框,先選擇文件的保存路徑,
再點擊「生成設置」按鈕,彈出「系統設置」面板,
對輸出後的PDF文件進行加密和字體等設置,
點擊兩次確定,當前的word文檔就被轉換成PDF格式的文件了.

『叄』 如何解決利用aspose把word文檔轉換為pdf文檔時出現亂碼 C#

Aspose.PDF不能將word文件轉換成PDF文件,因此就會出現aspose把word文檔轉換為pdf文檔時出現亂碼情況。
aspose的官網上查了下文檔,Aspose.PDF無法直接轉換word文檔,需要先有個中間步驟。就是先把word轉換成XML格式的文件,再使用Aspose.PDF綁定這個XML,再保存為PDF格式。如果word文檔中有圖片,則生成XML的時候會在臨時文件夾中生成圖片。

『肆』 aspose.word 把Word轉成圖片時,格式變了

Aspose.PDF無法直接轉換word文檔,需要先有個中間步驟。就是先把word轉換成XML格式的文件,再使用Aspose.PDF綁定這個XML,再保存為PDF格式。如果word文檔中有圖片,則生成XML的時候會在臨時文件夾中生成圖片。
調整word圖片位置方法如下:
1、打開一個word文檔,插入一副圖片;

2、要想隨意調整圖片,就要先來設置圖片格式,在圖片上點右鍵,選中「設置圖片格式」;

3、在彈出的對話框中選擇「文字環繞」,「浮於文字上方」,確認之後,就可以隨意移動圖片位置了,當然相應的文字位置也要根據需要調整。

『伍』 aspose-word15.8.0收費嗎

aspose-word15.8.0收費。aspose-word15.8.0是一個很強大的控制項,可以用來操作word,excel,ppt等文件,用這個控制項來導入、導出數據非常方便。aspose-word15.8.0是一個java類庫,aspose-word15.8.0支持DOC,DOCX,RTF,HTML,OpenDocument,PDF,XPS,EPUB和其他格式。

aspose-word15.8.0功能

aspose-word15.8.0的功能主要可以分為:轉換,對DOC,OOXML,RTF,WordprocessingML,HTML,MHTML,TXT和OpenDocument這些格式提供了高質量的轉換與被轉換功能。文檔對象模型,以可編程形式來操作所有文檔的元素,提供了大量的API,方便創建、修改、提取、拷貝、分離、加入和替換文檔內容。

『陸』 asp.net中,把word文檔轉為PDF格式文件的問題。

C#編程,將Word轉PDF,該方法有一定弊端,但是比起網路上的其他方法來說,還算比較好的,弊端是需要客戶機上安裝有WORD2007或更高的版本。
1、添加引用:Microsoft.Office.Interop.Word版本12.0.0.0;2、在開頭添加命名空間引用:usingMicrosoft.Office.Interop.Word;3、具體實現方法如下:
//Word轉換成pdf
///<summary>
///把Word文件轉換成為PDF格式文件///</summary>
///<paramname="sourcePath">源文件路徑</param>///<paramname="targetPath">目標文件路徑</param>///<returns>true=轉換成功</returns>
privateboolWordToPDF(stringsourcePath,stringtargetPath){
boolresult=false;
Microsoft.Office.Interop.Word.WdExportFormatexportFormat=Microsoft.Office.Interop.Word.WdExportFormat.wdExportFormatPDF;objectparamMissing=Type.Missing;
Microsoft.Office.Interop.Word.=newMicrosoft.Office.Interop.Word.ApplicationClass();
Microsoft.Office.Interop.Word.DocumentwordDocument=null;try
{
objectparamSourceDocPath=sourcePath;stringparamExportFilePath=targetPath;
Microsoft.Office.Interop.Word.=exportFormat;
boolparamOpenAfterExport=false;
Microsoft.Office.Interop.Word.=Microsoft.Office.Interop.Word.WdExportOptimizeFor.wdExportOptimizeForPrint;Microsoft.Office.Interop.Word.WdExportRangeparamExportRange=Microsoft.Office.Interop.Word.WdExportRange.wdExportAllDocument;intparamStartPage=0;intparamEndPage=0;
Microsoft.Office.Interop.Word.WdExportItemparamExportItem=Microsoft.Office.Interop.Word.WdExportItem.wdExportDocumentContent;boolparamIncludeDocProps=true;boolparamKeepIRM=true;
Microsoft.Office.Interop.Word.=Microsoft.Office.Interop.Word.WdExportCreateBookmarks.wdExportCreateWordBookmarks;boolparamDocStructureTags=true;boolparamBitmapMissingFonts=true;boolparamUseISO19005_1=false;
wordDocument=wordApplication.Documents.Open(refparamSourceDocPath,refparamMissing,refparamMissing,refparamMissing,refparamMissing,refparamMissing,refparamMissing,refparamMissing,refparamMissing,refparamMissing,refparamMissing,refparamMissing,refparamMissing,refparamMissing,refparamMissing,refparamMissing);if(wordDocument!=null)
wordDocument.ExportAsFixedFormat(paramExportFilePath,paramExportFormat,paramOpenAfterExport,
paramExportOptimizeFor,paramExportRange,paramStartPage,paramEndPage,paramExportItem,paramIncludeDocProps,paramKeepIRM,paramCreateBookmarks,paramDocStructureTags,paramBitmapMissingFonts,paramUseISO19005_1,refparamMissing);
result=true;
if(wordDocument!=null){
wordDocument.Close(refparamMissing,refparamMissing,refparamMissing);wordDocument=null;}
if(wordApplication!=null){
wordApplication.Quit(refparamMissing,refparamMissing,refparamMissing);
wordApplication=null;}GC.Collect();
GC.WaitForPendingFinalizers();GC.Collect();
GC.WaitForPendingFinalizers();}catch{
result=false;
if(wordDocument!=null){
wordDocument.Close(refparamMissing,refparamMissing,refparamMissing);wordDocument=null;}
if(wordApplication!=null){

『柒』 linux 安裝中文字體解決Aspose word轉PDF亂碼

原因:
linux下沒有中文字體支持,window下是正常的
解決方法:linux安裝字體
解決前

解決後

字體安裝後需要重啟一下應用才生效

安裝過程

字體目錄:/usr/share/fonts/

cp window下的字體(C:\Windows\Fonts)到上面目錄(/usr/share/fonts/my_fonts)中

就可以看到安裝好的字體了

『捌』 如何使用文檔處理控制項Aspose.Word將圖像轉換為PDF文檔

對於文檔處理控制項Aspose.words,它的具有代表性的功能是在沒有安裝MicrosoftWord的情況下,也能實現生成、列印、渲染、郵件合並,文檔格式轉換等功能。今天在使用Aspose.Words過程中,意外的發現這款文檔處理軟體的另外一個功能,它可以將圖像轉換為PDF文件,接下來就為大家分享一下實現這一功能的具體代碼:

usingSystem;
usingSystem.Drawing;
usingSystem.Drawing.Imaging;
usingSystem.IO;
usingSystem.Reflection;

usingAspose.Words;
usingAspose.Words.Drawing;

namespaceImageToPdf
{
classProgram
{
publicstaticvoidMain(string[]args)
{
//Sampleinfrastructure.
stringexeDir=Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)+Path.DirectorySeparatorChar;
stringdataDir=newUri(newUri(exeDir),@"../../Data/").LocalPath;

ConvertImageToPdf(dataDir+"Test.jpg",dataDir+"TestJpgOut.pdf");
ConvertImageToPdf(dataDir+"Test.png",dataDir+"TestPngOut.pdf");
ConvertImageToPdf(dataDir+"Test.wmf",dataDir+"TestWmfOut.pdf");
ConvertImageToPdf(dataDir+"Test.tiff",dataDir+"TestTiffOut.pdf");
ConvertImageToPdf(dataDir+"Test.gif",dataDir+"TestGifOut.pdf");
}

///<summary>
///.Wordsfor.NET.
///</summary>
///<paramname="inputFileName">Filenameofinputimagefile.</param>
///<paramname="outputFileName">OutputPDFfilename.</param>
(stringinputFileName,stringoutputFileName)
{
//CreateAspose.Words.DocumentandDocumentBuilder.
//.
Documentdoc=newDocument();
DocumentBuilderbuilder=newDocumentBuilder(doc);

//Readtheimagefromfile,ensureitisdisposed.
using(Imageimage=Image.FromFile(inputFileName))
{
//.Forexample
//theframesofaBMPorTIFFare"pagedimension"whereasframesofaGIFimageare"timedimension".
FrameDimensiondimension=newFrameDimension(image.FrameDimensionsList[0]);

//.
intframesCount=image.GetFrameCount(dimension);

//.
intframesCount=image.GetFrameCount(FrameDimension.Page);

//Loopthroughallframes.
for(intframeIdx=0;frameIdx<framesCount;frameIdx++)
{
//,incaseofamulti-frameTIFF.
if(frameIdx!=0)
builder.InsertBreak(BreakType.SectionBreakNewPage);

//Selectactiveframe.
image.SelectActiveFrame(dimension,frameIdx);

//.
//.
PageSetupps=builder.PageSetup;
ps.PageWidth=ConvertUtil.PixelToPoint(image.Width,image.HorizontalResolution);
ps.PageHeight=ConvertUtil.PixelToPoint(image.Height,image.VerticalResolution);

//.
builder.InsertImage(
image,
RelativeHorizontalPosition.Page,
0,
RelativeVerticalPosition.Page,
0,
ps.PageWidth,
ps.PageHeight,
WrapType.None);
}
}

//SavethedocumenttoPDF.
doc.Save(outputFileName);
}
}
}
閱讀全文

與asposewordpdf相關的資料

熱點內容
同花順指標編程 瀏覽:571
小米應用雙開如何加密 瀏覽:179
rsa的加密優勢 瀏覽:242
佛教電影在線觀看 瀏覽:754
韓劇電影免費觀看 瀏覽:685
日本劇情劇電影 瀏覽:969
2017最火編程語言 瀏覽:406
化合價演算法 瀏覽:349
海康威視發卡都是加密的嗎 瀏覽:848
快穿女主黃黃小說推薦 瀏覽:627
主角在美洲建國 瀏覽:969
葉天明柳韻的小說叫什麼 瀏覽:325
一個美國電影三個個人開車旅行 瀏覽:28
台灣電影老師和學生 瀏覽:948
攜程app怎麼看評價 瀏覽:234
爹爹女兒古言 瀏覽:961
天堂網站免費觀看 瀏覽:991
葉子楣和徐錦江吳啟華演過的電影 瀏覽:545
php模板緩存 瀏覽:148
查看電腦密碼策略命令 瀏覽:753