-   Bug Tracker (
-   -   PDF/X-PDF "Bug" in 1.8.9 and below (

c4x 07-07-2006 02:08 AM

PDF/X-PDF "Bug" in 1.8.9 and below

There is some bug with different Content-Types in the server response for PDF files.

One of our servers is responding with "Content-type: application/x-pdf". (See below).
The PhpDig search allows only application/pdf. And only if this header is found the PDF gets parsed.

The x-pdf is nothing different and just some IE fix... try google :)

Maybe anyone should rewrite the line 510 (v1.8.8) of the robot_functions.php:

PHP Code:

else if ($regs[2] == 'pdf' && PHPDIG_INDEX_PDF == true) { 

PHP Code:

else if (($regs[2] == 'pdf' || $regs[2] == 'x-pdf') && PHPDIG_INDEX_PDF == true) { 

And everything will work fine for both response types of the server :)

Here is the sample response of our Apache server:


Status Code: 200
Date: Fri, 07 Jul 2006 08:22:09 GMT
Server: Apache/2.0.46 (Red Hat)
Last-modified: Thu, 06 Jul 2006 10:40:59 GMT
Etag: "12b081e-a3044-622f64c0"
Accept-ranges: bytes
Content-length: 667716
Connection: close
Content-type: application/x-pdf

Greetings, MR

All times are GMT -8. The time now is 04:22 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.