Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

There could be several reasons why the PDF generator is not working on your Android phone. Here are some solutions to try:

  1. Check if the required permissions and dependencies are added in the AndroidManifest.xml file.

  2. Ensure that the iText7 library is added to the build.gradle file and is compatible with your Android version.

  3. Check if the PDF file is created successfully on the phone but stored in a different directory. You can check by using a file explorer app.

  4. Use a try-catch block when generating the PDF file to catch any exceptions that occur during the process.

  5. Ensure that the memory usage of the app is within the limit specified by the Android operating system. Large PDF files or images can cause memory issues.

  6. Test the app on different Android phones and emulators to rule out device-specific issues.

  7. Finally, you can also use a logging tool to log errors and debug the app on your phone.