title: I can't import com.itextpdf.text.Document class
body: <p>I'm building an android app and I want to use iText for creating pdf file, but I can't use Document class. As I seen in tutorials, there should be import com.itextpdf.text.Document for using Document class. For this app, I'm using com.itextpdf:itext-pdfa:5.5.9 library. I want to create a simple pdf file with 2 paragraphs, something like this:</p>
  
  <pre><code>    try{
          File pdfFolder = new File(Environment.getExternalStoragePublicDirectory(
                  Environment.DIRECTORY_DOCUMENTS), "pdfdemo");
          if (!pdfFolder.exists()) {
              pdfFolder.mkdir();
          }
  
          Date date = new Date() ;
          String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmss").format(date);
  
          File myFile = new File(pdfFolder + timeStamp + ".pdf");
  
          OutputStream output = new FileOutputStream(myFile);
  
          Document document = new Document();
  
          PdfAWriter.getInstance(document, output);
  
          document.open();
  
          document.add(new Paragraph(mSubjectEditText.getText().toString()));
          document.add(new Paragraph(mBodyEditText.getText().toString()));
  
          document.close();
      }catch (Exception e) {}
  </code></pre>
  
  <p>'</p>
  
  <p>Could anyone help me with this problem? What am I doing wrong?</p>