Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
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 CreditAttribution: Rodeo.be commentedI still get those same errors..
(using multisite)
Comment #3
gershonavi CreditAttribution: 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 CreditAttribution: Rodeo.be as a volunteer commented