{"id":74692,"date":"2017-09-16T14:33:54","date_gmt":"2017-09-16T14:33:54","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/pdf-or-image-generator\/"},"modified":"2017-11-14T10:01:16","modified_gmt":"2017-11-14T10:01:16","slug":"pdf-or-image-generator","status":"closed","type":"plugin","link":"https:\/\/tw.wordpress.org\/plugins\/pdf-or-image-generator\/","author":15566000,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0","stable_tag":"trunk","tested":"4.9.31","requires":"4.0","requires_php":"5.5","requires_plugins":"","header_name":"PDF or image generator","header_author":"Osmosys","header_description":"It helps you in converting page content, html string or file with html to image or PDF.","assets_banners_color":"87aecf","last_updated":"2017-11-14 10:01:16","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/osmosys.asia\/","header_plugin_uri":"","header_author_uri":"http:\/\/osmosys.asia\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1128,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"0.1":"<ul>\n<li>Initial release.<\/li>\n<\/ul>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1732181","resolution":"128x128","location":"assets"}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1732181","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1731633","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1732268","resolution":"2","location":"assets"}},"screenshots":{"1":"PDF or image generator settings page.","2":"PDF or image generator demo page."}},"plugin_section":[],"plugin_tags":[5520,146524,38117,146523,64534],"plugin_category":[59],"plugin_contributors":[145839,146578,145838,145879,145837],"plugin_business_model":[],"class_list":["post-74692","plugin","type-plugin","status-closed","hentry","plugin_tags-converter","plugin_tags-html-to-image","plugin_tags-html-to-pdf","plugin_tags-image-converter","plugin_tags-pdf-converter","plugin_category-utilities-and-tools","plugin_contributors-prasanna03","plugin_contributors-priyankaac","plugin_contributors-sampathkumar0019","plugin_contributors-siddhartha-osmosys","plugin_contributors-wposmosys","plugin_committers-sampathkumar0019","plugin_committers-wposmosys"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/pdf-or-image-generator_87aecf.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/pdf-or-image-generator\/assets\/screenshot-1.png?rev=1731633","caption":"PDF or image generator settings page."},{"src":"https:\/\/ps.w.org\/pdf-or-image-generator\/assets\/screenshot-2.png?rev=1732268","caption":"PDF or image generator demo page."}],"raw_content":"<!--section=description-->\n<p>It provides the following functionalities<\/p>\n\n<ul>\n<li>Converting webpage content, HTML string or file into image. <\/li>\n<li>Converting webpage content, HTML string or file into PDF.<\/li>\n<\/ul>\n\n<h3>Getting Started<\/h3>\n\n<h4>Configuration<\/h4>\n\n<ul>\n<li>Go to plugin settings page through settings menu or settings link under plugin name in the plugins page.<\/li>\n<li>Download wkhtmltox from <a href=\"https:\/\/wkhtmltopdf.org\/downloads.html\">here<\/a>.<\/li>\n<li>Run that executable file then it will create wkhtmltox folder. Enter the absolute path of the files inside wkhtmltox-&gt;bin files.<\/li>\n<\/ul>\n\n<h4>Usage<\/h4>\n\n<ul>\n<li><p>We have to call the following function with specified paramters and it will return the generated PDF\/image path.<\/p>\n\n<p>PDFIG_generate($src, $src_type, $dest_file_name, $conversion_type);<\/p>\n\n<ul>\n<li><strong>$src<\/strong> is required, expected string. Ex: <a href=\"http:\/\/osmosys.asia\">\"http:\/\/osmosys.asia\"<\/a>, \"home\/osmosys\/test.php\" etc.<\/li>\n<li><strong>$src_type<\/strong> is required, expected string. It specifies what is the source type, It can be one of the 3 values which are specified in the possible values. Possible values: \"TEMPLATE_PATH\", \"HTML_STRING\", \"URL\".<\/li>\n<li><strong>$dest_file_name<\/strong> is optional, expected string. It is the file with which file will get downloaded. Ex: \"test\" etc.<\/li>\n<li><strong>$conversion_type<\/strong> is optional, expected string. It specifies to which format we have to convert the given source, it can be one among the 2 values which are specified in the possible values. Possible values: \"PDF\", \"IMG\".<\/li>\n<\/ul><\/li>\n<li>Simply insert the following shortcode <code>[PDFIG_generator_demo]<\/code> for a demo page.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<h4>Automatic installation<\/h4>\n\n<ul>\n<li>Go to the 'Plugins' menu in WordPress and click 'Add New'<\/li>\n<li>Search for 'PDF or image generator' and select 'Install Now'<\/li>\n<li>Activate the plugin when prompted<\/li>\n<\/ul>\n\n<h4>Manual installation<\/h4>\n\n<ul>\n<li>Upload the 'pdf-img-generator' folder to the '\/wp-content\/plugins\/' directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ul>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><h4>Automatic installation<\/h4>\n\n<ul>\n<li>Go to the 'Plugins' menu in WordPress and click 'Add New'<\/li>\n<li>Search for 'PDF or image generator' and select 'Install Now'<\/li>\n<li>Activate the plugin when prompted<\/li>\n<\/ul>\n\n<h4>Manual installation<\/h4>\n\n<ul>\n<li>Upload the 'pdf-img-generator' folder to the '\/wp-content\/plugins\/' directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ul><\/dd>\n<dt>Where can I contribute to this plugin?<\/dt>\n<dd><p><a href=\"https:\/\/github.com\/OsmosysSoftware\/pdf-image-generator\">https:\/\/github.com\/OsmosysSoftware\/pdf-image-generator<\/a><\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.0.1<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"It is for converting web page content, HTML string or files with HTML or text into an image or PDF.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/74692","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=74692"}],"author":[{"embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/wposmosys"}],"wp:attachment":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=74692"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=74692"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=74692"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=74692"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=74692"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=74692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}