When I click link "Generate PDF file", I'm redirected (for example on www.mysite.com/files/tex/64.pdf) and see message like:
"The directory files/tmp/drutex-4f02cab5ea5773ac9bfdd22359a2b1c1-1 has been created." on "Page no found" page. Nothing more. Can you help me or ask some more specification of my installation? THX a lot.

Comments

Kristen Pol’s picture

Same problem here. Seems to be an issue with the path where it's writing and looking for the intermediate tex file. I'm debugging it right now. Hopefully I will figure out a solution.

....
[update]

I did get it to work with a couple hacks. I'm not going to take the time to figure out how to fix it so there is a proper patch, but if you just want to get it to work you can do the following:

1) in drutex_node2pdf function, change:

$source_file = $image_dir .'/'. $file;
to
$source_file = 'sites/default/'.$image_dir .'/'. $file;

2) in drutex_node2latex function, change:

$dir = drutex_var_get("drutex_dir_images_{$node->format}");

to

$dir = 'tex';

3) create the sites/default/files/tex directory and make it writable to www-data

Good luck.

Rodeo.be’s picture

I still get those same errors..

(using multisite)

gershonavi’s picture

my solutions

function drutex_node2pdf_wrapper($nid) {
global $base_url;
$node = node_load($nid);
$pdf_dir = drutex_var_get("drutex_dir_images_{$node->format}");
/*$pdf_file = $pdf_dir .'/'. $node->nid .'.pdf';*/
$pdf_file = 'tmp' .'/'. $node->nid .'.pdf';

/*avi*/
if (!is_file($pdf_file)) {
drutex_node2pdf($nid);
}
drupal_goto($base_url .'/'. $pdf_file);
drupal_goto($pdf_file); /*avi*/

}
for me it worked...

Rodeo.be’s picture

Issue summary: View changes
Status: Active » Closed (outdated)