get_option('aspose_pdf_importer_app_sid'), 'appKey' => get_option('aspose_pdf_importer_app_key'), 'uploadpath' => $upload_path['path'], 'insert_pdf_url' => plugins_url( 'getAsposePdfContent.php', __FILE__ ), 'aspose_files_url' => plugins_url( 'getAsposeFiles.php', __FILE__ ), ); wp_localize_script( 'aspose_pdf_importer_script', 'AsposeParams', $params ); wp_enqueue_script( 'jquery-ui-dialog' ); wp_enqueue_script( 'jquery-ui-tabs' ); wp_enqueue_script( 'aspose_pdf_importer_script' ); wp_register_style( 'AsposePdfImporterStyle', plugins_url( 'css/style.css', __FILE__), array(), '' ); wp_enqueue_style( 'AsposePdfImporterStyle'); wp_enqueue_style( 'jquery-ui-tabs'); wp_enqueue_style( 'wp-jquery-ui-dialog'); } add_action('init', 'AsposePdfImporterEnqueueScripts'); /** * Pluing settings page * @param no-param * @return no-return */ function AsposePdfImporterAdminContent() { // Creating the admin configuration interface ?>


If you don't have an account with Aspose Cloud, Click here to Sign Up.

Aspose Pdf Importer'; return $context; } add_action( 'admin_footer', 'aspose_pdf_add_inline_popup_content' ); function aspose_pdf_add_inline_popup_content() { ?>

Please go to settings page and enter valid Aspose Cloud App ID & Key.

'Aspose-Pdf-Importer-Select-File', 'TB_iframe' => 1 ), $image_library_url ); ?>

Select Pdf File

ID]' value='" . esc_attr__( 'Use this Pdf File For Importing' ) . "' />"; $form_fields['buttons'] = array('tr' => "\t\t$send\n"); $form_fields['context'] = array( 'input' => 'hidden', 'value' => 'Aspose-Pdf-Importer-Select-File' ); return $form_fields; } function aspose_pdf_importer_file_selected($html, $send_id) { $file_url = wp_get_attachment_url($send_id); $file_url = basename($file_url); ?>