OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



QuickSubmit Plugin PDF?

The Plugin Gallery is a venue for users of PKP software to share their plugins.

Moderators: jmacgreg, michael, John

Forum rules
If you post a plugin here, please include information on which versions of which applications it is compatible with. Attach a tarball of the plugin (e.g. tar cvzf myPlugin-0.1.tar.gz plugins/generic/myPlugin). Thanks for contributing!

QuickSubmit Plugin PDF?

Postby KAZIM » Tue Feb 19, 2013 5:22 am

Hello;
OJS 2.4.1

When i save article via QuickSubmit Plugin as PDF format, file format is seen as “UNTITLED” (Figure 1). And i have changed Layout-Edit Label field with file format PDF (Figure 2-3), but when i click on PDF, Save As option has appeared (Figure 4). And PDF reading page isnt opening.

In addition that when i send article as author, i am not faced with this problem.

Image
Image
Image
Image
KAZIM
 
Posts: 4
Joined: Tue Feb 19, 2013 5:17 am

Re: QuickSubmit Plugin PDF?

Postby asmecher » Tue Feb 19, 2013 9:29 am

Hi KAZIM,

Your problem is most likely with your server being unable to identify PDF files via MIME typing. Search the forums for "MIME type PDF" or similar and you'll find lots of threads on the subject.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9201
Joined: Wed Aug 10, 2005 12:56 pm

Re: QuickSubmit Plugin PDF?

Postby KAZIM » Wed Feb 20, 2013 4:00 am

Hello;
OJS 2.4.1

I've tried the methods of solution of the Apache server. But the problem continues
KAZIM
 
Posts: 4
Joined: Tue Feb 19, 2013 5:17 am

Re: QuickSubmit Plugin PDF?

Postby asmecher » Wed Feb 20, 2013 9:30 am

Hi KAZIM,

The solution probably involves changing some PHP configuration. Could you post specifically what you've tried and what the result is?

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9201
Joined: Wed Aug 10, 2005 12:56 pm

Re: QuickSubmit Plugin PDF?

Postby KAZIM » Thu Feb 21, 2013 1:15 am

Hi asmecher

OJS 2.4.1

I do not know much about php. I did the following hotfix

Replace "application/pdf" to "application/x-pdf"
KAZIM
 
Posts: 4
Joined: Tue Feb 19, 2013 5:17 am

Re: QuickSubmit Plugin PDF?

Postby asmecher » Thu Feb 21, 2013 9:56 am

Hi KAZIM,

Where did you make this change, and just to confirm, did it have any effect?

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9201
Joined: Wed Aug 10, 2005 12:56 pm

Re: QuickSubmit Plugin PDF?

Postby KAZIM » Fri Feb 22, 2013 12:25 am

Hello;
OJS 2.4.1

I made the following change in the file. The problem continues to

apache \ conf \ mime.types
KAZIM
 
Posts: 4
Joined: Tue Feb 19, 2013 5:17 am

Re: QuickSubmit Plugin PDF?

Postby asmecher » Fri Feb 22, 2013 12:07 pm

Hi KAZIM,

This is a PHP configuration issue, not specific to OJS. OJS determines MIME types using one of three methods, taking the first one that's available:
  • PHP's mime_content_type function
  • PHP's fileinfo functions
  • As a final fallback, the "file" tool on the server (which is available in most UNIX-based server environments).
First, determine which are available in your PHP environment; then look at the PHP documentation for each to find out how that function determines what MIME type a file represents.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9201
Joined: Wed Aug 10, 2005 12:56 pm


Return to Plugin Gallery

Who is online

Users browsing this forum: No registered users and 0 guests