{"@attributes":{"version":"2.0"},"channel":{"title":"Documentation \u2013 Aspose.PDF Java for PHP","link":"https:\/\/docs.aspose.com\/pdf\/java\/aspose-pdf-java-for-php\/","description":"Recent content in Aspose.PDF Java for PHP on Documentation","generator":"Hugo -- gohugo.io","language":"en","lastBuildDate":"Mon, 17 Feb 2025 00:00:00 +0000","item":[{"title":"Java: Download and Configure Aspose.PDF in PHP","link":"https:\/\/docs.aspose.com\/pdf\/java\/download-and-configure-aspose-pdf-in-php\/","pubDate":"Sat, 05 Jun 2021 00:00:00 +0000","guid":"https:\/\/docs.aspose.com\/pdf\/java\/download-and-configure-aspose-pdf-in-php\/","description":"\n        \n        \n        <h2 id=\"download-required-libraries\">Download Required Libraries<\/h2>\n<p>Download the required libraries mentioned below. These are the required for executing Aspose.PDF Java for PHP examples.<\/p>\n<ul>\n<li><strong>Aspose:<\/strong> <a href=\"https:\/\/downloads.aspose.com\/pdf\/java\">Aspose.PDF for Java Component<\/a><\/li>\n<li>PHP\/Java Bridge<\/li>\n<\/ul>\n<h2 id=\"download-examples-from-social-coding-sites\">Download Examples from Social Coding Sites<\/h2>\n<p>Following releases of running examples are available to download on below mentioned social coding sites:<\/p>\n<h3 id=\"github\">GitHub<\/h3>\n<ul>\n<li><strong>Aspose.PDF Java for PHP Examples<\/strong>\n<ul>\n<li><a href=\"https:\/\/github.com\/aspose-pdf\/Aspose.PDF-for-Java\/tree\/master\/Plugins\/Aspose_Pdf_Java_for_PHP\">Aspose.PDF Java for PHP<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2 id=\"how-to-configure-the-source-code-on-linux-platform\">How to configure the source code on Linux Platform<\/h2>\n<p>Please follow these simple steps\u00a0in order to open and extend the source code while using:<\/p>\n<h2 id=\"1-install-tomcat-server\">1. Install Tomcat Server<\/h2>\n<p>To install Tomcat server, issue following command on the Linux console.\u00a0This will successfully install the Tomcat server.<\/p>\n<div class=\"highlight\"><pre tabindex=\"0\" class=\"chroma\"><code class=\"language-actionscript3\" data-lang=\"actionscript3\"><span class=\"line\"><span class=\"cl\"> <span class=\"n\">sudo<\/span> <span class=\"n\">apt<\/span><span class=\"o\">-<\/span><span class=\"kd\">get<\/span> <span class=\"n\">install<\/span> <span class=\"n\">tomcat8<\/span><\/span><\/span><\/code><\/pre><\/div>\n<h2 id=\"2-download-and-configure-phpjavabridge\">2. Download and Configure PHP\/JavaBridge<\/h2>\n<p>In order to download the PHP\/JavaBridge binaries, issue the following command on the Linux console.<\/p>\n<div class=\"highlight\"><pre tabindex=\"0\" class=\"chroma\"><code class=\"language-actionscript3\" data-lang=\"actionscript3\"><span class=\"line\"><span class=\"cl\">  <span class=\"n\">wget<\/span> <span class=\"n\">http<\/span><span class=\"o\">:\/\/<\/span><span class=\"n\">citylan<\/span><span class=\"o\">.<\/span><span class=\"na\">dl<\/span><span class=\"o\">.<\/span><span class=\"na\">sourceforge<\/span><span class=\"o\">.<\/span><span class=\"na\">net<\/span><span class=\"sr\">\/project\/php-java-bridge\/Binary%20package\/php-java-bridge_6.2.1\/<\/span><span class=\"n\">php<\/span><span class=\"o\">-<\/span><span class=\"n\">java<\/span><span class=\"o\">-<\/span><span class=\"n\">bridge_6<\/span><span class=\"o\">.<\/span><span class=\"mf\">2.1<\/span><span class=\"n\">_documentation<\/span><span class=\"o\">.<\/span><span class=\"na\">zip<\/span><\/span><\/span><\/code><\/pre><\/div>\n<p>Unzip the PHP\/JavaBridge binaries by issuing the following command on the Linux console.<\/p>\n<div class=\"highlight\"><pre tabindex=\"0\" class=\"chroma\"><code class=\"language-actionscript3\" data-lang=\"actionscript3\"><span class=\"line\"><span class=\"cl\">  <span class=\"n\">unzip<\/span> <span class=\"o\">-<\/span><span class=\"n\">d<\/span> <span class=\"n\">php<\/span><span class=\"o\">-<\/span><span class=\"n\">java<\/span><span class=\"o\">-<\/span><span class=\"n\">bridge_6<\/span><span class=\"o\">.<\/span><span class=\"mf\">2.1<\/span><span class=\"n\">_documentation<\/span><span class=\"o\">.<\/span><span class=\"na\">zip<\/span><\/span><\/span><\/code><\/pre><\/div>\n<p>This will extract\u00a0<strong>JavaBridge.war<\/strong>\u00a0file. Copy it to the tomcat88\u00a0<strong>webapps<\/strong>\u00a0folder by issuing the following command on the Linux console.<\/p>\n<div class=\"highlight\"><pre tabindex=\"0\" class=\"chroma\"><code class=\"language-actionscript3\" data-lang=\"actionscript3\"><span class=\"line\"><span class=\"cl\">  <span class=\"n\">sudo<\/span> <span class=\"n\">cp<\/span> <span class=\"n\">JavaBridge<\/span><span class=\"o\">.<\/span><span class=\"na\">war<\/span> <span class=\"sr\">\/var\/lib\/tomcat8\/webapps\/<\/span><span class=\"n\">JavaBridge<\/span><span class=\"o\">.<\/span><span class=\"na\">war<\/span><\/span><\/span><\/code><\/pre><\/div>\n<p>By copying, tomcat8 will automatically create a new folder &ldquo;<strong>JavaBridge<\/strong>&rdquo; in\u00a0<strong>webapps<\/strong>. Once the folder is created, make sure your tomcat8 is running and then check\u00a0 http:\/\/localhost:8080\/JavaBridge \u00a0in the browser, it should open a default page of JavaBridge.<\/p>\n<p>If any error message appears then install\u00a0 <strong>FastCGI<\/strong>\u00a0by issuing the following command on Linux console.<\/p>\n<div class=\"highlight\"><pre tabindex=\"0\" class=\"chroma\"><code class=\"language-actionscript3\" data-lang=\"actionscript3\"><span class=\"line\"><span class=\"cl\">  <span class=\"n\">sudo<\/span> <span class=\"n\">apt<\/span><span class=\"o\">-<\/span><span class=\"kd\">get<\/span> <span class=\"n\">install<\/span> <span class=\"n\">php55<\/span><span class=\"o\">-<\/span><span class=\"n\">cgi<\/span><\/span><\/span><\/code><\/pre><\/div>\n<p>After installing php5.5 CGI, restart the tomcat8 server and check\u00a0 http:\/\/localhost:8080\/JavaBridge \u00a0again in the browser.<\/p>\n<p>If\u00a0<strong>JAVA_HOME<\/strong>\u00a0error is displayed, then open \/etc\/default\/tomcat8 file and uncomment the line that sets the JAVA_HOME. Check\u00a0http:\/\/localhost:8080\/JavaBridge \u00a0in the browser again, it should come with PHP\/JavaBridge Examples page.<\/p>\n<h2 id=\"3-configure-asposepdf-java-for-php-examples\">3. Configure Aspose.PDF Java for PHP Examples<\/h2>\n<p>Clone, PHP examples by issuing the following commands inside webapps\/JavaBridge folder.<\/p>\n<div class=\"highlight\"><pre tabindex=\"0\" class=\"chroma\"><code class=\"language-actionscript3\" data-lang=\"actionscript3\"><span class=\"line\"><span class=\"cl\"><span class=\"n\">$<\/span> <span class=\"n\">git<\/span> <span class=\"n\">init<\/span><span class=\"o\">&amp;<\/span><span class=\"n\">nbsp<\/span><span class=\"o\">;<\/span>\n<\/span><\/span><span class=\"line\"><span class=\"cl\">\n<\/span><\/span><span class=\"line\"><span class=\"cl\"><span class=\"n\">$<\/span> <span class=\"n\">git<\/span> <span class=\"n\">clone<\/span> <span class=\"o\">[<\/span><span class=\"n\">https<\/span><span class=\"o\">:\/\/<\/span><span class=\"n\">github<\/span><span class=\"o\">.<\/span><span class=\"na\">com<\/span><span class=\"sr\">\/aspose-pdf\/Aspose.PDF-for-Java\/tree\/master\/Plugins\/<\/span><span class=\"n\">Aspose<\/span><span class=\"o\">.<\/span><span class=\"na\">PDF<\/span><span class=\"o\">-<\/span><span class=\"k\">for<\/span><span class=\"o\">-<\/span><span class=\"n\">Java_for_PHP<\/span><span class=\"o\">]<\/span><\/span><\/span><\/code><\/pre><\/div>\n<h2 id=\"how-to-configure-the-source-code-on-windows\">How to configure the source code on Windows<\/h2>\n<p>Please follow below simple steps to configure PHP\/Java Bridge on Windows Platform<\/p>\n<ol>\n<li>\n<p>Install PHP5 and configure as you normally do<\/p>\n<\/li>\n<li>\n<p>Install JRE 6 (Java Runtime Environment) if you don\u2019t already have it. You can check this in C:\\Program Files etc. You can download it here . I am using JRE 6 as It is compatible with PHP Java Bridge (PJB).<\/p>\n<\/li>\n<li>\n<p>Install Apache Tomcat 8.0. You can download it here<\/p>\n<\/li>\n<li>\n<p>Download JavaBridge.war.<\/p>\n<\/li>\n<li>\n<p>Copy this file to tomcat webapps directory.\n(ex: C:\\Program Files\\Apache Software Foundation\\Tomcat 8.0\\webapps )<\/p>\n<\/li>\n<li>\n<p>Restart tomcat apache service.<\/p>\n<\/li>\n<li>\n<p>Go to  http:\/\/localhost:8080\/JavaBridge\/test.php  to check if php works. You can find other examples in there<\/p>\n<\/li>\n<li>\n<p>Copy your <a href=\"https:\/\/downloads.aspose.com\/pdf\/java\">Aspose.PDF Java<\/a> jar file to C:\\Program Files\\Apache Software Foundation\\Tomcat 8.0\\webapps\\JavaBridge\\WEB-INF\\lib<\/p>\n<\/li>\n<li>\n<p>Clone <a href=\"https:\/\/github.com\/aspose-pdf\/Aspose.PDF-for-Java\/tree\/master\/Plugins\/Aspose_Pdf_Java_for_PHP\">Aspose.PDF Java for PHP<\/a> examples inside C:\\Program Files\\Apache Software Foundation\\Tomcat 8.0\\webapps\\ folder.<\/p>\n<\/li>\n<li>\n<p>Copy folder C:\\Program Files\\Apache Software Foundation\\Tomcat 8.0\\webapps\\JavaBridge\\java to your Aspose.PDF Java for PHP examples folder.<\/p>\n<\/li>\n<li>\n<p>Restart apache tomcat service and start using examples.<\/p>\n<\/li>\n<\/ol>\n\n      "},{"title":"Java: PHP Programmers Guide","link":"https:\/\/docs.aspose.com\/pdf\/java\/php-programmers-guide\/","pubDate":"Sat, 05 Jun 2021 00:00:00 +0000","guid":"https:\/\/docs.aspose.com\/pdf\/java\/php-programmers-guide\/","description":"\n        \n        \n        <p>This section includes the following topics:<\/p>\n<ul>\n<li><a href=\"https:\/\/docs.aspose.com\/pdf\/pdf\/java\/working-with-document-conversion-in-php\/\">Working with Document Conversion in PHP<\/a><\/li>\n<li><a href=\"https:\/\/docs.aspose.com\/pdf\/pdf\/java\/working-with-document-object-in-php\/\">Working with Document Object in PHP<\/a><\/li>\n<li><a href=\"https:\/\/docs.aspose.com\/pdf\/pdf\/java\/working-with-pages-in-php\/\">Working with Pages in PHP<\/a><\/li>\n<li><a href=\"https:\/\/docs.aspose.com\/pdf\/pdf\/java\/working-with-text-in-php\/\">Working with Text in PHP<\/a><\/li>\n<\/ul>\n\n      "},{"title":"Java: Support, Extend and Contribute to Aspose.Pdf in PHP","link":"https:\/\/docs.aspose.com\/pdf\/java\/support-extend-and-contribute-to-aspose-pdf-in-php\/","pubDate":"Sat, 05 Jun 2021 00:00:00 +0000","guid":"https:\/\/docs.aspose.com\/pdf\/java\/support-extend-and-contribute-to-aspose-pdf-in-php\/","description":"\n        \n        \n        <h2 id=\"support\">Support<\/h2>\n<p>From the very first days of Aspose, we knew that just giving our customers good products would not be enough. We also needed to deliver good service. We are developers ourselves and understand how frustrating it is when a technical issue or a quirk in the software stops you from doing what you need to do. We&rsquo;re here to solve problems, not create them.<\/p>\n<p>This is why we offer free support. Anyone who uses our product, whether they have bought them or are using an evaluation, deserves our full attention and respect.<\/p>\n<p>You can log any issues or suggestions related to\u00a0Aspose.Cells Java for PHP using any of the following platforms:<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/aspose-pdf\/Aspose.PDF-for-Java\/issues\">Github<\/a><\/li>\n<\/ul>\n<h2 id=\"extend-and-contribute\">Extend and Contribute<\/h2>\n<p>Aspose.PDF Java for PHP is open source and its source code is available on the major social coding websites listed below. Developers are encouraged to download the source code and contribute by suggesting or adding new feature or improving the existing ones, so that others could also benefit from it.<\/p>\n<h2 id=\"source-code\">Source Code<\/h2>\n<p>You can get the latest source code from one of the following locations<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/aspose-pdf\/Aspose.PDF-for-Java\/tree\/master\/Plugins\/Aspose_Pdf_Java_for_PHP\">Github<\/a><\/li>\n<\/ul>\n\n      "}]}}