A problem with Evince?



Dear friends,

I am a user of Evince in a distribution Fedora 10 of Linux.

I have a problem, for which I wait could help me to resolve.


I execute a program corresponded with PHP handled from the browser Mozilla Firefox. The aim is to open a file pdf for a certain page and to show it in the browser.

On having pulsated on a button Submit, there is invoked a script PHP that must launch Evince passing so much the name of the file pdf as the parameter - page-label = (page to showing).

The script works correctly called from line of commands, but I do not manage to show it in the browser.

The file /etc/mozpluggerrc ( MozPlugger 1.10 # Version: January 4, 2008 )

have the directive:

repeat noisy swallow(evince) fill: evince "$file" (and the same for PostScript's files).


The used programs:

PHP 5.2.6

Evince 2.24.2-1

Browser Mozilla Firefox 3.0.6 (Mozilla/5.0 (X11; U; Linux x86_64; es-ES; rv:1.9.0.6) Gecko/2009020410 Fedora/3.0.6-1.fc10 Firefox/3.0.6)


The PHP script:


<?php

function general()

{

header("Content-Type: application/pdf");

$document = 'factura.pdf';

header("Content-Length: " . filesize($document));

header('Content-Disposition: inline; filename="'.$document.'"');

readfile($document);

}

function page_do($file,$page)

{

header("Content-Type: application/pdf");

$command=�/usr/bin/evince �page-label=�.$page.� �.$file�;

system($command);

}

//general(); ## Show the document at the first page without problem

page_do(2,�factura.pdf�); ## does't work

?>


Attentivly

Receive a cordial greeting,

Juan Luis Abuin



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]