Posts

Showing posts with the label Write PDF Library

Write PDF - Android Studio - Kotlin

Image
Write PDF using EditText: 1) We will use iText PDF Library to create pdf  2) We will input text Using EditText  3) Button to save text as PDF file  4) It will require WRITE_EXTERNAL_STORAGE permission to save pdf file,  5) We'll handle runtime permission too >> Watch For Java Library Link:  https://developers.itextpdf.com/itextg-android VIDEO : Step 1:  Create a new Project   or   open new project Step 2: Add following library in build.gradle(Module:app) dependencies { compile 'com.itextpdf:itextg:5.5.10' } Step 3: Add WRITE_EXTERNAL_STORAGE permission in AndroidManifest Step 4: Code AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android= "http://schemas.android.com/apk/res/android" package= "com.blogspot.atifsoftwares.writepdf_kotlin" > <!--storage permission--> <uses-permission android:name= "an...

Write PDF - Android Studio - Java

Image
Write PDF using EditText: 1) We will use iText PDF Library to create pdf  2) We will input text Using EditText  3) Button to save text as PDF file  4) It will require WRITE_EXTERNAL_STORAGE permission to save pdf file,  5) We'll handle runtime permission too >> Watch For Kotlin Library Link:  https://developers.itextpdf.com/itextg-android VIDEO: Step 1:  Create a new project   OR   Open your project Step 2: Add following library in build.gradle(Module:app) dependencies { compile 'com.itextpdf:itextg:5.5.10' } Step 3: Add WRITE_EXTERNAL_STORAGE permission in AndroidManifest Step 4: Code AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android= "http://schemas.android.com/apk/res/android" package= "com.blogspot.atifsoftwares.writepdf_java" > <!--add permission--> <uses-permission android:name= "android.permission...