Skip to content

Commit

Permalink
Add support for Portable Document Format Archive
Browse files Browse the repository at this point in the history
  • Loading branch information
blagojabozinovski committed Jan 14, 2025
1 parent 95fe59f commit b0e4fa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/pdfview/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def info(self):
}

def can_view(self, data_dict):
return data_dict["resource"].get("format", "").lower() == "pdf"
return data_dict["resource"].get("format", "").lower() in ["pdf", "pdf/a"]

def view_template(self, context, data_dict):
return "pdf_view.html"
Expand Down

0 comments on commit b0e4fa2

Please sign in to comment.