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
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Lu Xu
erp5
Commits
413300b6
Commit
413300b6
authored
Oct 20, 2011
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
specify backgroud color explicitly because recent ImageMagick generates transparent PNG from PDF.
parent
9fbb94ec
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/PDF_renderHTMLPreviewAsImage.xml
...em/portal_skins/erp5_dms/PDF_renderHTMLPreviewAsImage.xml
+1
-1
bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/PDF_renderHTMLThumbnailPreview.xml
.../portal_skins/erp5_dms/PDF_renderHTMLThumbnailPreview.xml
+2
-3
bt5/erp5_dms/bt/revision
bt5/erp5_dms/bt/revision
+1
-1
No files found.
bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/PDF_renderHTMLPreviewAsImage.xml
View file @
413300b6
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
python:here.PDF_getPageNumberFromSelectionIndex(request.get(\'selection_index\', 0));\n
python:here.PDF_getPageNumberFromSelectionIndex(request.get(\'selection_index\', 0));\n
display python: request.get(\'display\', context.portal_preferences.getPreference(\'preferred_image_size\', \'large\'));\n
display python: request.get(\'display\', context.portal_preferences.getPreference(\'preferred_image_size\', \'large\'));\n
format python: request.get(\'format\', context.portal_preferences.getPreference(\'preferred_image_format\', \'png\'))">
\n
format python: request.get(\'format\', context.portal_preferences.getPreference(\'preferred_image_format\', \'png\'))">
\n
<img
src=
""
alt=
""
\n
<img
src=
""
alt=
""
style=
"background-color:white;"
\n
tal:attributes=
"src\n
tal:attributes=
"src\n
string:${here/absolute_url}/index_html?display=${display}&format=${format}&frame=${frame}"
/>
\n
string:${here/absolute_url}/index_html?display=${display}&format=${format}&frame=${frame}"
/>
\n
</div>
</div>
...
...
bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/PDF_renderHTMLThumbnailPreview.xml
View file @
413300b6
...
@@ -43,12 +43,11 @@
...
@@ -43,12 +43,11 @@
format python: request.get(\'format\', \n
format python: request.get(\'format\', \n
context.portal_preferences.getPreference(\'preferred_image_format\', \'png\'))">
\n
context.portal_preferences.getPreference(\'preferred_image_format\', \'png\'))">
\n
<a
tal:attributes=
"href string:PDF_viewHTMLPreviewAsImage?selection_index=${frame}"
>
\n
<a
tal:attributes=
"href string:PDF_viewHTMLPreviewAsImage?selection_index=${frame}"
>
\n
<img
title=
"Thumbnail"
\n
<img
title=
"Thumbnail"
style=
"background-color:white;"
\n
i18n:attributes=
"title"
i18n:domain=
"ui"
\n
i18n:attributes=
"title"
i18n:domain=
"ui"
\n
tal:attributes=
"src string:index_html?display=${display}&format=${format}&frame=${frame}"
/>
\n
tal:attributes=
"src string:index_html?display=${display}&format=${format}&frame=${frame}"
/>
\n
</a>
\n
</a>
\n
</tal:block>
\n
</tal:block>
]]>
</unicode>
</value>
]]>
</unicode>
</value>
</item>
</item>
...
...
bt5/erp5_dms/bt/revision
View file @
413300b6
1256
1257
\ No newline at end of file
\ No newline at end of file
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