2016-12-14 3 views
0

私のテキストを生成または変換したり、テキストをPDFファイルとして保存するのに役立つライブラリがありますか?いくつかのテキストを挿入し、アンドロイドにpdfファイルとして保存します。

アクティビティ内の異なるedittextから別のテキストを挿入したい場合、そのテキストをpdfファイルに保存してクリックすると、それらのテキストをpdfファイルに表示します。そしてまた

は私が私の仕事をするのを助けることができる任意のhelpulライブラリやAPIがあります:)

任意の提案は役に立ち

だろうPDFでいくつかの構造(仮定する履歴書フォーマット) を提供したいですTQあなたは以下のコード使用してPDFファイルを作成することができ、すべての

答えて

0

:詳細は

// create a new document 
PdfDocument document = new PdfDocument(); 

// crate a page description 
PageInfo pageInfo = new PageInfo.Builder(new Rect(0, 0, 100, 100), 1).create(); 

// start a page 
Page page = document.startPage(pageInfo); 

// draw something on the page 
View content = getContentView(); 
content.draw(page.getCanvas()); 

// finish the page 
document.finishPage(page); 
. . . 
// add more pages 
. . . 
// write the document content 
document.writeTo(getOutputStream()); 

// close the document 
document.close(); 

はをご覧ください。このトピックについて

関連する問題