Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
de6b9008
Commit
de6b9008
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
2383e629
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 @
de6b9008
...
...
@@ -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