-1

私はpdfクリエーターをやろうとしています。いろいろ試してコーディングを見つけましたが、まだエラーが発生し、解決方法がわかりません。これが私のコードです:

public void GenerarPDF(View view){
try{

  Document document=new Document();
  File root = new File(Environment.getExternalStorageDirectory(), "Notes");
  if (!root.exists()) {
      root.mkdirs();
  }
  File gpxfile = new File(root, "generando.pdf");
  PdfWriter.getInstance(document,new FileOutputStream(gpxfile));
  document.open();
  document.add(new Paragraph("Testing testing and testing"));
  document.close();

}catch(Exception e){
    e.printStackTrace();
}
} 

logcatエラーは言う:

09-25 07:40:14.337: E/dalvikvm(9397): Could not find class 'org.spongycastle.cert.X509CertificateHolder', referenced from method com.itextpdf.text.pdf.PdfReader.readDecryptedDocObj

09-25 07:40:14.337: W/dalvikvm(9397): VFY: unable to resolve new-instance 2148 (Lorg/spongycastle/cert/X509CertificateHolder;) in Lcom/itextpdf/text/pdf/PdfReader;

このエラーの意味と解決方法を教えてください。

4

1 に答える 1