title: Why pdf not generate Android Q?
body: <p>Why this not generate the pdf from android version10(Q)
  but android version 8 also generate the pdf
  please help me ....</p>
  <p><code>enter code here</code>
  File file=new File(Environment.getExternalStorageDirectory().getPath()+&quot;/SAMPLE.pdf&quot;);</p>
  <pre><code>            try{
              mypdfDocument.writeTo(new FileOutputStream(file));
  
              }catch (IOException e){
              e.printStackTrace();
              }
              mypdfDocument.close();
              }
  </code></pre>