Hi,

I just update drupal to 4.3.1 and 'pdfview' stop to working.

CommentFileSizeAuthor
#3 pdfview_patch.txt7.21 KBTheLibrarian

Comments

TheLibrarian’s picture

Component: Miscellaneous » Code
Assigned: Unassigned » TheLibrarian
Category: support » bug

I can confirm this bug. I'll start work on this right away.

TheLibrarian’s picture

Ok. So I have this module alost entirely updated to work with the latest stable phppdflib (2.7) and with Drupal 4.3.2.

The only thing that's blocking me is the failure for the "view as pdf" link to appear on the links for a node. I'll post pdfview_link() below in hopes that someone can suggest a fix.

function pdfview_link($type, $node = 0, $main = 0) {
  $links = array();
  
  if (($type == "node") && (user_access("access content"))) {
    $links[] = l(t("view as pdf"), "pdfview/view/$node->nid", array("title" => t("View and print node as pdf.")));
  }
  return $links;
}

TheLibrarian’s picture

StatusFileSize
new7.21 KB

I finally put in the time to really hack on this module. The result is this patch. It doesn't create perfect PDF files (meaning: they are rather plain), but at least it works with Drupal CVS.

killes@www.drop.org’s picture

Thanks, applied (with minor changes). If you want to have a "letter" setting, please provide a patch for an admin selection.

joel_guesclin’s picture

Title: pdfview on Drupal 4.3.1 » pdfview on Drupal 4.3.1 and 4.4.0
Category: bug » support

I would very much like to use PDFview on the site I am planning, even if it is a simple rendering. However, I have a major problem: the only font sets provided with the product are in ISO-8859-1. Since Drupal (and all the other CMS I have looked at) very sensibly works in UTF-8, then as soon as I try creating output in any other language than English, I lose all the "special" characters (eg é, è, ç, à etc). Since the site I am working on includes English, French, Spanish, German, Italian, Portuguese.... but also Russian, Hindi (हर व्यक्ति के लिए वितरण के अधिकार देता ), Bengali, Farsi... this is obviously a restriction that make the product unusable. Has anyone found any way round this, or tested PDFView with other than the default fonts - indeed does anyone know where to find some UTF-8 open source freeware fonts?

TheLibrarian’s picture

This last post isn't appropriate here. I'm moving it to Issue 6795 and re-marking this closed.