<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>CentOS XPDF support Archives - Dragonsoft Technology View</title>
	<atom:link href="https://blog.dragonsoft.us/tag/centos-xpdf-support/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.dragonsoft.us/tag/centos-xpdf-support/</link>
	<description>Talk about Technologies, Software Architecture and Management</description>
	<lastBuildDate>Thu, 05 Apr 2018 18:26:05 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://blog.dragonsoft.us/wp-content/uploads/2022/04/logo-main-bw-150x150.png</url>
	<title>CentOS XPDF support Archives - Dragonsoft Technology View</title>
	<link>https://blog.dragonsoft.us/tag/centos-xpdf-support/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">2577970</site>	<item>
		<title>SearchWP and XPDF support</title>
		<link>https://blog.dragonsoft.us/2018/04/05/searchwp-and-xpdf-support/</link>
					<comments>https://blog.dragonsoft.us/2018/04/05/searchwp-and-xpdf-support/#respond</comments>
		
		<dc:creator><![CDATA[Serguei Dosyukov]]></dc:creator>
		<pubDate>Thu, 05 Apr 2018 18:14:35 +0000</pubDate>
				<category><![CDATA[CentOS Maintenance]]></category>
		<category><![CDATA[Scratch Pad]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[CentOS XPDF support]]></category>
		<category><![CDATA[SearchWP]]></category>
		<category><![CDATA[SearchWP XPDF]]></category>
		<category><![CDATA[XPDF]]></category>
		<guid isPermaLink="false">http://blog.dragonsoft.us/?p=1793</guid>

					<description><![CDATA[<p>Introduction SearchWP is a nice WordPress plugin which allows to extend WordPress search capabilities to various content format beyond just page text. Here I am focusing on PDF indexing specifically. If you have any PDF files published and want them be indexed SearchWP-XPDF extension can be deployed. Issue Problem is<a class="moretag" href="https://blog.dragonsoft.us/2018/04/05/searchwp-and-xpdf-support/"> Read more</a></p>
<p>The post <a href="https://blog.dragonsoft.us/2018/04/05/searchwp-and-xpdf-support/">SearchWP and XPDF support</a> appeared first on <a href="https://blog.dragonsoft.us">Dragonsoft Technology View</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h1>Introduction</h1>
<p><a href="https://searchwp.com/">SearchWP</a> is a nice WordPress plugin which allows to extend WordPress search capabilities to various content format beyond just page text.<br />
Here I am focusing on PDF indexing specifically. If you have any PDF files published and want them be indexed SearchWP-XPDF extension can be deployed.</p>
<h1>Issue</h1>
<p>Problem is that SearchWP developers decided to rely on deployment of direct code from FooLabs.  If it is not deployed as a drop-in, functionality would be disabled.<br />
Drop-in option is not always possible and in fact unnecessary for this plugin to function.</p>
<p>In distros like CentOS  PHP XPDF support is available out of the box and can be enabled by installing poppler_utils.</p>
<h1>Solution</h1>
<ul>
<li style="list-style-type: none;">
<ul>
<li>Install SearchWP Xpdf extension as you would normally do</li>
<li>In WP Dashboard warning would appear &#8211; &#8220;SearchWP Xpdf Integration requires you to download and install Xpdf&#8230;&#8221;</li>
<li>SSH to your server</li>
<li>Install poppler_utils using yum<code># yum install poppler_utils</code></li>
<li>Refresh your WP Dashboard page. Warning would not go away because code specifically looking for physical location instead of verifying XPDF support by OS</li>
<li>Now we do some hacking:
<ul>
<li>in your WP installation, navigate to /plugins/searchwp-xpdf/ and open <strong>searchwp-xpdf.php</strong> for edit</li>
<li>Look for &#8220;// see if Xpdf exists&#8221;</li>
<li>Comment out what follows
<pre class="brush: plain; title: ; notranslate">
/*
// see if Xpdf exists
if ( $continue &amp;&amp; file_exists( $this-&gt;xpdfPath ) ) {
echo 'Xpdf (pdftotext) was found, continuing&lt;br /&gt;';
} elseif ( $continue ) {
echo 'Xpdf (pdftotext) was not found, aborting&lt;br /&gt;';
$continue = false;
}
*/
</pre>
</li>
<li>Next look for <strong>function admin_notice()</strong></li>
<li>Comment out content of the function to suppress Admin notice
<pre class="brush: plain; title: ; notranslate">
function admin_notice() {
/*
...
&lt;?php }
*/
}
</pre>
</li>
</ul>
</li>
<li>Refresh WP Dashboard</li>
<li>Warning would now go away</li>
<li>Run indexing, PDF files should now be indexed properly</li>
</ul>
</li>
</ul>
<h1>Footnote</h1>
<p>I did actually reach out to SearchWP team back in May 2017 and solution was acknowledged, but almost year later plugin still relies on custom drop-ins.</p>
<p>Enjoy.</p>
<hr/><span style="font-size: 7pt">Copyright &copy; 2026 <strong><a href="https://blog.dragonsoft.us">Dragonsoft Technology View</a></strong>. This Feed is for personal non-commercial use only.</span><p>The post <a href="https://blog.dragonsoft.us/2018/04/05/searchwp-and-xpdf-support/">SearchWP and XPDF support</a> appeared first on <a href="https://blog.dragonsoft.us">Dragonsoft Technology View</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.dragonsoft.us/2018/04/05/searchwp-and-xpdf-support/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1793</post-id>	</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Lazy Loading (feed)
Minified using Disk
Database Caching 47/83 queries in 0.085 seconds using Disk

Served from: blog.dragonsoft.us @ 2026-06-22 04:39:39 by W3 Total Cache
-->