[Free] Advance PDF Creator : Encrypt / Decrypt PDF , ImageToPDF , WebViewToPDF , Print PDF etc

Advance PDF creator Advance PDF Creator

ImageToPDF: This block will create PDF file from images
imageFile = You can choose more than one image to create a pdf file
destination = The PDF file will be created at this path.

blocks (18)

PDFToImage: This block will convert the pdf to image
pdfFile = PDF file location
destination = Select folder directory for extracting image
fileName = The image will have the same name as the one you gave
several images will add numbers to the end of the image's name
imageQuality = It can accept values in the range of 0-100

blocks (27)

EncryptPDF: This block will encrypt PDF file
pdfFile = Select the pdf file
destination = The PDF file will be created at this path.
userPass = Password
ownerPass = Password

blocks (28)

DecryptPDF: This block will encrypt PDF file
pdfFile = Select the pdf file
destination = The PDF file will be created at this path.
ownerPass = Password

LayoutToPDF: This block will convert layout view into PDF file
layoutView = Select the component
destination = The PDF file will be created at this path.
pages = page number

blocks (21)

WebViewToPDF: This block will convert WebView into PDF file
webView = Select the component
documentName =
This name will display as the document name in Save PDF / Print PDF Service.

HTMLToPDF: This block will convert HTML code into PDF file
webView = Select the component
documentName =
This name will display as the document name in Save PDF / Print PDF Service.

PrintImage: This block will print the image
imageFile = Select the image use File Picker / file path
imageName =
This name will display as the document name in Print PDF Service.

blocks (24)

PrintPDF: This block will print the PDF
pdfFile = Select the PDF use File Picker / file path
documentName =
This name will display as the document name in Print PDF Service.

blocks (32)

TextToPDF: This block will convert text into PDF

component_method (2)

GetFilePathFromUri: This block will convert Uri into file path
What is the use of this block?
Suppose the user select PDF / Image using file picker and file picker
return Uri String then it will convert Uri to file path

component_method (3)

GetUriFromFilePath: This block will convert file path into Uri

component_method (4)

GetASD: This block will return app specific directory

component_method (5)

RequestPermissions: This block will ask for WRITE_EXTERNAL_STORAGE READ_EXTERNAL_STORAGE permission

event_OnCreated

OnPDFCreated: This block will trigger when the PDF is created

component_event (4)

OnPDFToImageCompleted: This block will trigger when the PDFToImage is completed

component_event (5)

OnPDFDecrypted: This block will trigger when the PDF is decrypted successfully

component_event (6)

OnPDFEncrypted: This block will trigger when the PDF is encrypted successfully

component_event (7)

OnFailToEncryptPDF: This block will trigger if any error occurs while encrypting PDF file

component_event (8)

OnFailToDecryptPDF: This block will trigger if any error occurs while decrypting PDF file

event_OnError

OnError: This block will trigger when any error occurs

The extension contains these permissions :

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>

Download

Extension has divided into 2 parts:
com.Shreya.AdvancePDFCreator.aix (16.4 KB)
This version (com.Shreya.AdvancePDFCreator.aix) does not have blocks for Encrypt & Decrypt PDF, Text to PDF

com.Shreya.AdvancePdfCreatorAix.aix (994.4 KB)
This version (com.Shreya.AdvancePDFCreatorAix.aix) only has blocks for Encrypt & Decrypt PDF , Text to PDF because its usage Itext library

Credit

Thanks @enfandroid for sponsoring :blush:

Support

If you liked my work, you can support me - paypal.me
If you want to donate/sponsor with Paytm then please PM me for the payment details.

50 Likes

Awesome…!! Your extension will become inevitable in all the koders project it seems…

Welcome, it supports all versions of android also it seems

1 Like

Really nice , keep :kodular:ode

1 Like

@Still-learning and @mahmoud_hooda

Thank you guys :blush:

2 Likes

Congratulations!

Great job, young :+1:

1 Like

Excellent work, excellent extension.

1 Like

@Rogerio_Rios @Jinx
Thank you :heart::blush:

2 Likes

Nice work :+1:

1 Like

This is really awesome, congratulations for your amazing extension!

1 Like

Extension is free now!! :smile:

Thanks @enfandroid for sponsoring

8 Likes

:smiling_face_with_three_hearts: :heart_eyes:
:two_hearts: :two_hearts: :two_hearts: love it

1 Like

Hi, great job. Does the extension ask for permission on initialization of the screen it contains? Would there be some way to change to ask for permission only when calling the Create PDF method.

blocks
I found it now, the method is separate. wonderful the extension . :heart_eyes:

1 Like

This Extension Not Work With Custom Webview :smiling_face_with_tear: :smiling_face_with_tear: :smiling_face_with_tear:
Please Fix

How am I able to get the text inside the PDF?

Custom WebView is NonvisibleComponent
I guess custom web view have block for getting web page as pdf

Or

You can use LayoutToPDF block

It’s showing us a Compilation error “Invoking AAPT”| when Exporting if the Encrypted Blocks extension are in the screen

Download the new one from topic

But Webview Cut Out

Great work, man, congratulations! Very nice and simple extension. It is just perfect for a new tool that I am developing for my project. Please PM me with your paypal account. I don’t have money there now but I will have in a few days and I will make you a donation. I ask you to PM me because otherwise I must forget.

I would like to give you just 2 suggestions:

  1. That all blocks allow us to choose the number of pages, not only with the layouttopdf block.
  2. And would be nice if we could set the pdf file to break into a new page based in the size of the page. Example: if the layout is occupying more than the size of the screen, half of the content goes to page 1 and half to page 2. Not sure if I could explain myself, I hope you understand :sweat_smile:

And one more thing, the text to pdf block is not appearing, as you can see in the screenshot.


PS: I just downloaded the extension from your first post.

1 Like