Jack Rackham
|
Wednesday 20 April 2005 5:33:09 am
I have still not been able to solve my image problem with PDF export. I have tried to "upgrade" my PDF image settings from the old 3.4/3.3 export PDF image templates, to the new 3.5 settings but it's not working. Is there an image bug in the PDF export? Another problem is that the export PDF sometimes creates dual lines breaks instead on a single line break. Is this too an issue in 3.5 or is it caused by a bug in the old standard templates.
|
Jack Rackham
|
Wednesday 20 April 2005 7:57:09 am
I have already got an override template for embed images, and I have tried to override it with the "new one"* but it's not working.
* old one
{default image_class=large
hspace=false()
align="center"
border_size=0}
{let image_attribute=$object.data_map.image
image_content=$image_attribute.content}
{section show=is_set($attribute_parameters.align)}
{set align=$attribute_parameters.align}
{section-else}
{set align="center"}
{/section}
{let image=$image_content[$image_class]}
{pdf(image,hash(src,$image.full_path,
width,$image.width,
height,$image.height,
border,$border_size,
align, $align))}
{/let}
{* {/section} *}
{/let}
{/default}
new override
{default image_class=large
alignment=false()
hspace=false()
border_size=0}
{let image_attribute=$object.data_map.image
image_content=$image_attribute.content}
{let image=$image_content[$image_class]}
{pdf(image,hash(src,$image.full_path,
width,$image.width,
height,$image.height,
border,$border_size))}
{/let}
{/let}
{/default}
|
Kåre Køhler Høvik
|
Wednesday 20 April 2005 8:09:23 am
TOC : no, no changes has been done to that doc. page for several months.
Image :
Are the names of the images displayed in the PDF, or nothing at all ?
Have you installed GD or ImageMagick ?
Which OS are you using ? What format are the images ( image type, and depth ) ?
Kåre Høvik
|
Jack Rackham
|
Wednesday 20 April 2005 8:43:55 am
Overide:
[pdf_article_main]
Source=node/view/pdf.tpl
MatchFile=pdf/article/main.tpl
Match[class_identifier]=article
Subdir=templates
[pdf_article_title]
Source=content/datatype/pdf/ezstring.tpl
MatchFile=pdf/article/title.tpl
Match[class_identifier]=article
Match[attribute_identifier]=title
Subdir=templates
[pdf_article_author]
Source=content/datatype/pdf/ezauthor.tpl
MatchFile=pdf/article/author.tpl
Match[class_identifier]=article
Match[attribute_identifier]=author
Subdir=templates
[pdf_article_xml_headers]
Source=content/datatype/pdf/ezxmltags/header.tpl
MatchFile=pdf/article/xml_header.tpl
Match[class_identifier]=article
Subdir=templates
[pdf_article_xml_paragraph]
Source=content/datatype/pdf/ezxmltags/paragraph.tpl
MatchFile=pdf/article/xml_paragraph.tpl
Match[class_identifier]=article
Subdir=templates
[pdf_article_footer]
Source=content/pdf/footer.tpl
MatchFile=pdf/article/footer.tpl
Match[class_identifier]=article
Subdir=templates
[pdf_article_embed_image]
Source=content/pdf/embed.tpl
MatchFile=pdf/article/image.tpl
Match[class_identifier]=article
Subdir=templates
Cache clears right. I have a file called pdf.ini.append.php do you think it's this file that causes the problem? pdf.ini.append.php
<?php /* #?ini charset="utf8"?
*/ ?>
|
Jack Rackham
|
Wednesday 20 April 2005 12:40:44 pm
As I suspected all along there is a bug in the PDF export, because when any of the override is set to override a specific class like in my config, then the images don't work. I also found out that the dual line error is caused by the xml_paragraph override, so I removed it. xml_paragraph.tpl
{pdf(newline)}
{pdf(text,$content|wash(pdf), hash( align, full ) )}
{pdf(newline)}
When this is said there are still a few issues that remain unsolved in the PDF export.
- Image comments are not shown - Still no support for right image size and image align.
|