Closed (outdated)
Project:
DruTeX
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Feb 2009 at 19:51 UTC
Updated:
31 Mar 2016 at 20:40 UTC
Jump to comment: Most recent
Comments
Comment #1
kristen polSame 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.
Comment #2
Rodeo.be commentedI still get those same errors..
(using multisite)
Comment #3
gershonavi commentedmy 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...
Comment #4
Rodeo.be commented