Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2006-01-25 17:55:33

chess
Plugin Author
Registered: 2005-11-10
Posts: 19
Website

Re: [plugin] [ORPHAN] wan_pdf

I have the same problem with the missing pdf files.

Offline

#14 2006-01-25 18:04:13

wanni
Archived Plugin Author
Registered: 2005-11-11
Posts: 32

Re: [plugin] [ORPHAN] wan_pdf

So thank you everybody, this is my first textpattern-plugin, so I would be very astonished if everything worked from the beginning. I will release an improved version this evening.

@chriloi: Thanks, the umlaut-thing was a point that didn’t satisfy me. And the solution is so simple…

Offline

#15 2006-01-25 20:17:58

wanni
Archived Plugin Author
Registered: 2005-11-11
Posts: 32

Re: [plugin] [ORPHAN] wan_pdf

I just uploaded a new version and I would be very happy if you could test it once more.

Offline

#16 2006-01-25 22:20:39

chess
Plugin Author
Registered: 2005-11-10
Posts: 19
Website

Re: [plugin] [ORPHAN] wan_pdf

Wanni, this is working great now, thanks!!!

One little niggle, however: the “class” attribute does not seem to work. I have a CSS class called pdf:

.pdf { padding: 19px 19px 19px 0; height: 16px; width: 16px; background: url(/images/pdf16.gif) no-repeat 100%; }

to display a little pdf icon and it is not working. When I view source, the class tag is not added, so something is not getting parsed right.

Still, great job on this plugin. I have been waiting for this — thank you VERY much!!

Offline

#17 2006-01-25 22:34:36

wanni
Archived Plugin Author
Registered: 2005-11-11
Posts: 32

Re: [plugin] [ORPHAN] wan_pdf

Nice to hear. I fixed the problem with the class attribute. I just forgot to add it to the link. But this plugin would not be possible without xhtml2pdf , so all the acknowledgements have to got to the french guys.

Offline

#18 2006-01-25 22:44:33

chess
Plugin Author
Registered: 2005-11-10
Posts: 19
Website

Re: [plugin] [ORPHAN] wan_pdf

works great now. thanks!

Offline

#19 2006-01-25 22:49:11

chess
Plugin Author
Registered: 2005-11-10
Posts: 19
Website

Re: [plugin] [ORPHAN] wan_pdf

wanni, one more request: the pdf version does not include the excerpt. when you get a chance, can you add it? thanks!

Offline

#20 2006-01-25 22:58:15

chriloi
Plugin Author
From: Vienna, Austria
Registered: 2006-01-17
Posts: 120
Website

Re: [plugin] [ORPHAN] wan_pdf

Where do you want to have your excerpt?`Above or below the body?

Offline

#21 2006-01-25 22:58:53

wanni
Archived Plugin Author
Registered: 2005-11-11
Posts: 32

Re: [plugin] [ORPHAN] wan_pdf

Hi chess,

no problem, I will do this tomorrow. I think, the best way to do this is to control this via option, so one can decide if you want to include the excerpt and/or the body.

Offline

#22 2006-01-25 23:27:30

jackson
Member
Registered: 2005-10-01
Posts: 14

Re: [plugin] [ORPHAN] wan_pdf

Chriloi, I ususally use the excerpt to put in the first paragraph of an article, with the rest of the article in the body, so I would want the excerpt to be before (above) the body. Wanni, including the excerpt as an option would be fantastic, thanks!

Offline

#23 2006-01-25 23:29:38

chess
Plugin Author
Registered: 2005-11-10
Posts: 19
Website

Re: [plugin] [ORPHAN] wan_pdf

thanks, wanni! :)

Offline

#24 2006-01-26 01:32:30

ChrisJ
Member
From: Vienna, Austria
Registered: 2004-03-30
Posts: 54
Website

Re: [plugin] [ORPHAN] wan_pdf

It started to work when I commented <code>var $pdfdata;</code> line in the x2fpdf.php file. Otherwise:

<blockquote>Fatal error: Cannot redeclare xhtml2pdf::$pdfdata in /Users/xxx/Sites/xxx/textpattern/lib/xhtml2pdf/classes/x2fpdf.php on line 27</blockquote>

I also tweaked your plugin a bit, so it would store article’s title and keywords (visible in Acrobat’s Document Properties or OSX Preview – Document Info).

<pre>$xpdf->SetSubject($thisarticle[‘title’]);
$xpdf->SetKeywords($thisarticle[‘keywords’]);</pre>

Things get bad when I wanted to print an article with images:

<blockquote><code>tag_error <txp:wan_pdf/> -> Warning: getimagesize(/Users/xxx/Sites/xxx/textpattern/lib/xhtml2pdf/images/77.jpg) [function.getimagesize]: failed to open stream: No such file or directory on line 215</code>
FPDF error: Missing or incorrect image file: /Users/xxx/Sites/xxx/textpattern/lib/xhtml2pdf/images/77.jpg</blockquote>

Still some path problems I suppose. Anyway, big thank you for your work.

Offline

Board footer

Powered by FluxBB