Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
c81ddc9b
Commit
c81ddc9b
authored
Jul 11, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PDF: do not call Image._setFile that guess image size & content type
parent
1b062408
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
product/ERP5/Document/PDFDocument.py
product/ERP5/Document/PDFDocument.py
+4
-1
No files found.
product/ERP5/Document/PDFDocument.py
View file @
c81ddc9b
...
...
@@ -33,6 +33,7 @@ from AccessControl import ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
,
PropertySheet
,
interfaces
from
Products.ERP5.Document.Image
import
Image
from
Products.ERP5.Document.File
import
File
from
Products.ERP5.Document.Document
import
ConversionError
from
subprocess
import
Popen
,
PIPE
from
zLOG
import
LOG
,
INFO
,
PROBLEM
...
...
@@ -350,4 +351,6 @@ class PDFDocument(Image):
del
self
.
_content_information
except
(
AttributeError
,
KeyError
):
pass
Image
.
_setFile
(
self
,
data
,
precondition
=
precondition
)
# Use File._setFile because Image._setFile will guess image size & content
# type
File
.
_setFile
(
self
,
data
,
precondition
=
precondition
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment