Horje
A PDF generator that really works. Creates PDF files on the fly with a simple shortcode from post(s), custom post type(s) or page(s). Supports ACF.

Noted That:

  • To install correctly this pdf-generator-crowd-api.zip.
  • Fisrt Download the pdf-generator-crowd-api.zip to your computer
  • Extract/Open pdf-generator-crowd-api.zip to Your Computer.
  • Then, Find readme.txt file inside pdf-generator-crowd-api.zip and Open readme.txt.
  • Now, Read the Requirements of this plugin. Which Wordpress Version and PHP Version are required to run this Plugin in Your Wordpress Site.
  • Then, Follow the Tips Below.

Start the Tips:

1. First Download "pdf-generator-crowd-api.zip" Plugin to your Local Computer. (Click Download)

2. Then, Login to your "yourdomain.com/wp-admin" Dashboard.

/stack/wp/e1593231376d7d849d2-4597-4fa3-a6ff-1eca18f72aab.png

3. Then, Click on "Plugins" + "Add New" from left sidemenu of Dashboard.

/stack/wp/e1593231378Screenshot20.png

4. Now, Click on "Upload Plugin" button.

/stack/wp/e1593231380Screenshot-2019-4-2AddPluginsHorjeWordPress.png

 

5. Now, Browse "pdf-generator-crowd-api.zip" Downloaded plugin from your computer, Where you downloaded pdf-generator-crowd-api.zip According to Step – 1 Above then, click on "Install Now"

/stack/wp/e15931461531577025694plugin.png

6. Now, Click on "Active Plugin"

/stack/wp/e15932313830ca45529-bf73-4101-8178-53ae60ce549f.png

7. Then, See left sidemenu. "PDF Generator Crowd API" folder is added on left sidemenu. Now, Click on "PDF Generator Crowd API" folder.

   Noted that: If you do not see "PDF Generator Crowd API" folder on left sidemenu then, see at left sidemenu "Settings" or "Tools".

8. Now you configure yourself oR Watch video tutorial below about PDF Generator Crowd API Configurtions and Settings or How to work "PDF Generator Crowd API" in your WordPress site.

 

oR

After Activated Plugin According to Step-6 then,

  1. Go to "Plugins" + "Installed Plugin" from Wordpress Admin Panel Leftside Menu.
  2. or Direct go to: https://yourdomain/wp-admin/plugins.php
  3. Then, Find "PDF Generator Crowd API" Activated Plugin from Plugin List.
  4. Then, Click on "Settings" from Plugin that is PDF Generator Crowd API
  5. Now, Edit/Add/Config the setting and Click on "Save Changes" button,
WP Plugin Setting



Guide

This section describes how to install the plugin and get it working.

  1. Upload the plugin folder pdfgeneratorcrowd to the `/wp-content/plugins/’ directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Put shortcode(s) on the WordPress post or page you want to display it on and add css to change layout for those.

Shortcodes

  • [pdfcrowd_generate] – Generates one or more pdf’s from current page/post or from a specific url or by fetching data from a post(s)/page(s)

[pdfcrowd_generate] attributes

  • debug_mode – sets the shortcode in debug mode which prints everything relevant for troubleshooting purposes.
  • skip_shortcode – if having several shortcodes and you want to test/debug one of them you could set this to yes for every shortcode you don’t want to debug
  • show_clientinfo – when having debug_mode set to yes , show clients info as well (including username and password. Use with caution!)
  • use_ssl – set yes if you want to make a connection over ssl and no if you don’t want to make a connection over ssl. If nothing set set, then the plugin identifies if your site is on ssl or not.
  • convert_urls – convert urls (set to current if you want to create pdf of current page/post. If having several urls separate them by using semicolon)
  • out_files – what filename(s) to save as. If having having several urls defined, add equal many files (defined in convert_urls) separated by semicolon
  • overwrite_pdf – yes/no/datachange – yes = always overwrite existing PDF, no = never overwrite existing PDF, datachange = only create/overwrite PDF when data changes (for usage with ACF)
  • path – this set the base path after the upload path of WordPress site (eg. pdfcrowd = /wp-content/uploads/pdfcrowd)
  • create_downloadlink – create a downloadable link to the created pdf
  • targetblank – set yes to open download link (pdf) in new windows, else no
  • html_class – if you want to style the downloadable link use this class
  • link_titles – what to show in link(s) creating a downloadlink. Several link should be separated by semicolon. Make sure number of titles equals number of files
  • data_includeonlyfieldtrue – if you have a select field (true/false) then include post only when this field is true
  • data_cpt – fetch data from specific custom post type (default to normal POST)
  • data_postid – data from specific post/page – id. If setting this to all, then use all posts defined by data_cpt
  • data_fields – tell name of fields that should be used when fetching data from a specific post/page
  • data_acfkeys – if using ACF, then tell key (this is important) of each value
  • add_related_fields – if you want to include a field in array (probably acf repeater field) that is related to another field
  • exclude_subfields – Tell what subfield(names) to exclude (probably from acf repeater) in the PDF
  • autosum_fields – auto summarize every column in subarrays (probably repeater-field)
  • css_file – if specified, it must be a link with full path to a css file that is publicy available. If set to theme the plugin uses style.css in the (child)themes directory.
  • last_shortcode – If using data_fields then value of this must be set to yes or no that tells if this is the last shortcode on page or not
  • use_posttitle – use post-title as name (Set [title] in template)
  • vat – used if calculation used for vat / after vat
  • pagebreak_afterpost – set yes/no for pagebreaking after each post
  • max_pages – sets max number of pages in generated pdf document
  • refresh_pdf – removed since 1.28
  • nrformat_keyfields – specify numberformat of given field(s)
  • nrformat_autosumfields – same as nrformat_keyfields but this only affects special tag fields that calculates sum (that starts with crowdpdf- below)
  • roundup_totalaftervat – do rounding of total after vat been calculated
  • generate_fromhtml – generate custom html. This html could be created anywhere. In shortcode(not so practical though). In code: Just create a new instance of this plugin and call function generatepdf_from_html( $attrs, $html_content = ”) $attr is used for setting values in key/pair instead of shortcut and $html_content is the html you want to use for createion of PDF

Special template tags

  • [title] – fetches post title (if use_posttitle set to yes)
  • [crowdpdf-total] – calculates sum of a specific field (in subarray/repeater-field) (if autosum_fields is set to yes)
  • [crowdpdf-totalvat] – calculates vat of sum based on value given in attribute vat (if autosum_fields is set to yes)
  • [crowdpdf-totalaftervat] – calculates total sum (total net + vat) (if autosum_fields is set to yes)
  • [crowdpdf-totalaftervat-roundupcompare] – if using roundup, then this could be used to show how much rounding of the price is affected ( crowdpdf-totalaftervat – (crowdpdf-total + crowdpdf-totalvat) )

Default values

  • [pdfcrowd_generate debug_mode=”no” skip_shortcode=”no” use_ssl=”{none}” show_client=”no” convert_urls=”{none}” out_files=”current” overwrite_pdf=”no” path=”pdfcrowd” create_downloadlink=”no” targetblank=”no” html_class=”{none}” link_titles=”{none}” data_includeonlyfieldtrue=”{none}” data_cpt=”post” data_postid=”{none}” data_fields=”” data_acfkeys=”” add_related_fields=”{none}” autosum_fields=”no” last_shortcode=”{none}” use_posttitle=”yes” vat=”25? pagebreak_afterpost=”yes” max_pages=”{none}” nrformat_keyfields=”{none}” nrformat_autosumfields=”{none}” roundup_totalaftervat=”no”]

post, custom, types, pages, supports, posts, shortcode, works, really, creates,

Name

Reffered: https://wordpress.org/