Professional PDF API Reference Documentation

API Description

The Professional PDF API generates PDF horoscope based on the birth details provided in the request data.

The request data also has number of other options such as border style, footer links, lord Ganesha picture style and other last page details. These options can be used to customise the PDF as per your company and brand requirement.

The PDF API in response provides you with a PDF URL from where either your user can download the PDF or you can directly send the PDF horoscope on your user’s email address. The usage of PDF horoscope can be completely customised as per your requirements.

PDF API Url

Following is the complete PDF API url -

https://pdf.astrologyapi.com/v1/pro_horoscope_pdf

Please note that all Vedic Rishi APIs use POST method for API call and so does PDF APIs.

PDF API Request Method

POST

Professional PDF Horoscope Samples

Following are the Professional PDF horoscope samples you can download. These generated PDFs are using Vedic Rishi Astro branding and everything can be customised to suit your company branding and style.

Request Data

Following are the options you will need to pass in PDF API -

                                        
                                            {
                                            "name" : "Ajeet Kanojia", -- Name of the user
                                            "gender" : "male", -- Gender of the user
                                            "day" : 10, -- Birth date of the user
                                            "month" : 07, -- Birth month of the user
                                            "year" :1992, -- Birth year of the user
                                            "hour" : 5, -- Birth hour of the user
                                            "min" : 12, -- Birth minute of the user
                                            "lat" : 19.231, -- Latitude of user birth place
                                            "lon" : 72.4242, -- Longitude of user birth place
                                            "language" : "en", -- Pdf Language eg: en,hi
                                            "tzone" : 5.5, -- Timezone of user birth place
                                            "place" : "Mumbai,Maharashtra India", -- User birth place
                                            "chart_style" : "NORTH_INDIAN", -- For south style SOUTH_INDIAN OR for eastern style EAST_INDIAN
                                            "footer_link" : "astrologyapi.com", -- Your domain link
                                            "logo_url" : "logo_url", -- Your company logo url
                                            "company_name" :"Vedic Rishi Astro Solutions Pvt. Ltd.", -- Your company name
                                            "company_info" : "Your Company Info", -- NOTE- SHOULD BE LESS THAN 500 CHARACTER
                                            "domain_url" : "https://www.astrologyapi.com", -- Your domain full url
                                            "company_email" : "[email protected]", -- Your company email
                                            "company_landline" : "+91- 221232 22", -- Your company Landline number
                                            "company_mobile" : "+91 1212 1212 12", -- Your company mobile number
                                            }

                                            Note : Language Abbreviations
                                            en - english,hi - hindi
                                        
                                    

Response Data

Following is the response you will get in PDF API -

                                        
                                            {
                                            "status" : true,
                                            "pdf_url" : "http://ec2-52-58-178-221.eu-central-1.compute.amazonaws.com/pdfs/pdf-1465733471262.pdf"
                                            }