πππππππππππππSet-Upππππππππππππππ
We have detailed video tutorials for each of the actions/elements we have in this plugin. Watch them to understand and use it at ease.
You can use the plugin in two methods:
β Use Google's Authorization method (Always recommended)
β Share access with us and we take care of the rest. (Use it only for testing)
β½ Method-1 -- Using Google's Auth method
ππ You must set up your Google Cloud account and create a Google Cloud Project before you can use this plugin. Takes less than 5 mins if you follow the instructions. It is a one time process which is necessary to get your client-id and client-secret. ππ
β Log in to your Google account.
β Go to
https://console.cloud.google.com/β Create a new project.
β Enable Google Sheets, Google Docs and Drive APIs.
β Create credentials for the API along with redirect URI.
β Note down the Client-secret and Client-ID.
βΈ Step (1 to 6) is explained in detail:
https://scribehow.com/shared/Docs_Sheets_and_PDF_Google_Cloud_Project__qV92qec8STWQFSBYR_twnwβΈ Watch Youtube video here:
https://www.youtube.com/watch?v=eVttvpRSf0Iβ Visit the following link:
https://script.google.com/macros/s/AKfycbxBmHD4Mmf0e67d0aLbcRGTeaqkurngzqBTj_oYdGBgkZvkBWU_eAU70qvidvWZU4PQxw/execand approve the script to be run on your behalf.
β½ Method-2 -- Share access with us
Share editor access to the G-Sheets, G-Docs and the Drive folder that you plan to use with this plugin to
[email protected] or make them public. This is required so that we can run the script from our own account on your files/folder. (Strongly recommend this method only for testing and move to Method-1 when going LIVE).
ππππππππππInstalling the Pluginππππππππππ
β Log in to your Bubble account
β Go to Plugins
β Search for βPDF Maker Pro by Ritz7β
β Install the plugin
πππππππππππUsing the Pluginπππππππππππ
ππWe have the following actions in both the methodsππ
β½ One Step PDF: This allows you to create PDF using G-Sheets as base. You can use a template from our library or design the template on Google Sheets from scartch.
Library link:
https://bubble.ritz7.com/PDF-TemplatesβΈ Watch the detailed video here:
https://www.youtube.com/watch?v=XWtPlz2bo-Mβ½ Docs_2_PDF: Use this action to generate PDF from Google Docs. Again, use the templates from our library or create your own.
Library link:
https://bubble.ritz7.com/PDF-TemplatesβΈ Watch the detailed video here:
https://www.youtube.com/watch?v=dBAKasJvdbsππ Note: In all the actions, we have a field named "Auth Token". This is basically for the Method-1 (Auth Method). You can leave this blank while using the Method-2 (Shared with
[email protected]). This field should be in the following format: Bearer <Access Code>. Access Code will be valid for 60 mins from the time it is generated and you can regenerate it using the Refresh Token. And this step is explained in detail here:
https://www.youtube.com/watch?v=1Z17t6vjKZIππ
β Drag and drop the element "Docs,Sheets & PDF".
β Add an action called "Get PDF Auth-Code via URL" which requires you can add Client-ID and redirect URI. This will return an URL that needs to be opened.
Note: The redirect URI should match exactly as you have set while configuring in Google Cloud.
β Add Next step: You will have to open the URL you get from the previous step.
Note: This will ask your permission for your app to use your Google Account. Once you permit, the element will automatically fetch the code from the URL.
β Generate Auth Token via code: Call an Action "Get_Access_Token-via_Code (PDF)". This will require you to pass the client-ID, client-secret, code (you will get it from the element 'PDF Maker Pro' and the param is named as 'Auth Code (PDF)') and redirect URI (this should match the one added in the Google Cloud Project)
Note: You will also get Refresh Token along with Access token from step-4. You use Refresh Token to get the Access Token once the old Access Token expires.
β Use "Get_Access_Token-via_R-Token (PDF)" action to get the Access token from Refresh Token. This requires you to provide client-ID, client-secret and refresh token.
ππMethod-2 doesn't require Access token for any of the actions and that field can be left blank if you choose to use method-2.ππ
ππππππππππππππππππππππππππππππ
We have tried documenting the entire process to use the βPDF Maker Pro by Ritz7β plugin to the best possible manner. But in case anything isn't clear, please share your feedback and we will try and improve it.