• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Hi,

the correct IANA-registered MIME-type for pdf has been application/pdf for years now. Here's a patch:

--- G-orig.pm   2006-04-06 19:53:51.000000000 +0200
+++ lib/TWiki/Contrib/GenPDF.pm   2006-07-04 16:10:57.000000000 +0200
@@ -656,7 +656,7 @@
    my $cd = "filename=${webName}_$topic.";
    try {
        if ($prefs{'format'} =~ /pdf/) {
-           print CGI::header( -TYPE => 'application/x-pdf',
+           print CGI::header( -TYPE => 'application/pdf',
                               -Content_Disposition => $cd.'pdf');
        }
        elsif ($prefs{'format'} =~ /ps/) {
Cf. http://www.iana.org/assignments/media-types/

GenPDF says: $VERSION = '$Rev: 9716 $'; Release Dakar

Regards, TWiki:Main/JoergHoehle

I will incorporate the change with a bug fix I am doing. This appears to be valid based on my research as well.

TWiki:Main/RickMach

The checkins fix this item and updated the documentation. A new release of the plugin has been uploaded to the Plugin web.

TWiki:Main/RickMach

ItemTemplate
Summary use application/pdf MIME type
ReportedBy TWiki:Main.JoergHoehle
Codebase 4.0.2, 4.0.4, 4.0.3
SVN Range Wed, 12 Jul 2006 build 11001
AppliesTo Extension
Component GenPDFAddOn
Priority Enhancement
CurrentState Closed
WaitingFor

Checkins 11673 11674 11675 11678
TargetRelease n/a
Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r8 - 2006-10-06 - RickMach
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback