Share » Forums » General » Creating Books

Creating Books

Creating Books

Tuesday 05 February 2008 3:58:38 am - 9 replies

Author Message

Ekkehard Dörre

Tuesday 05 February 2008 7:12:35 am

Hi Samir,

it ist possible, there is the ODF import:
http://ez.no/doc/extensions/odf_import_export

Then these are real eZ content objects, like an article and you can export them to Openoffice, PDF, print version, MS Word etc.

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Samir Greadly

Tuesday 05 February 2008 2:21:04 pm

Thanks Ekkehard,

This is exactly what I need. I set it up, and went through the PDF and tried to upload a few .odt files I have. It only uploaded the pictures that are in the file, but the end result was an empty page..

I'm not sure if it's because I'm on OSX with a third party setup of PHP, but i'll check it out in the morning. Maybe I can get something out of the logs.

Gaetano Giunta

Tuesday 05 February 2008 4:20:32 pm

to make sure odf import works, spend a few moments examining the ini settings of the ezodf extension:
- make sure that the odf files you are importing are converted to the correct ezP content class
- you can also do custom mapping of odf doc sections to ezP object attributes (in fact the whole parsing of odf docs done by eZ is based on sections, so if your original docs have them you're in big luck)

Principal Consultant International Business
Member of the Community Project Board

Samir Greadly

Wednesday 06 February 2008 12:45:27 am

I forgot to mention, I'm using NeoOffice at the moment, which is a OSX fork of OpenOffice.org. I hope that doesn't make a difference.. it accepted the extension. And from what I understood in the documentation, it's only used for conversions, which I don't need at the moment if i'm just importing .odt files.

After examining the ini file, and adding the path to the zip binary, it still doesn't work. So i decided to examine the error log..

When uploading the file, I get the following errors

[Wed Feb  6 10:22:59 2008] [error] [client 127.0.0.1] client denied by server configuration: /Users/samirgreadly/Sites/ez4/site_admin
[Wed Feb  6 10:23:00 2008] [error] [client 127.0.0.1] client denied by server configuration: /Users/samirgreadly/Sites/ez4/site_admin
[Wed Feb  6 10:23:01 2008] [error] [client 127.0.0.1] client denied by server configuration: /Users/samirgreadly/Sites/ez4/index_treemenu.php

When choosing the destination folder for the upload to be placed, again, i get these two

[Wed Feb  6 10:24:54 2008] [error] [client 127.0.0.1] client denied by server configuration: /Users/samirgreadly/Sites/ez4/site_admin
[Wed Feb  6 10:24:56 2008] [error] [client 127.0.0.1] client denied by server configuration: /Users/samirgreadly/Sites/ez4/index_treemenu.php

The same 2 errors above happen with every page I go to, which leads me to believe that they may not be related to my problem or have any effect on it.

I'm not sure what else I can provide to help solve the problem, I appreciate the help.

Thanks

Samir Greadly

Wednesday 06 February 2008 1:27:55 pm

From the 15 documents I have and tried, only 2 managed to be imported successfully. I double checked the permissions on all files, and they're the same (664 owned by the same user). Some of them are almost identical in content, where one worked, and the rest didn't.

The content shouldn't be that different too.. I'm confused to why it's not working, and wonder if there's any debug output that can help. I'm willing to contribute as much as i can.

Samir Greadly

Thursday 07 February 2008 4:45:51 am

I've enabled debugging and uploaded two files, one that works, and one that doesn't.

I noticed these errors on both files while uploading, not sure if they're critical though,

When uploading,

Unsupported top node table-of-content<br/>
Unsupported top node line-break<br/>
Unsupported top node tab<br/>
Failed converting var/ezwebin_site/storage/images-versioned/1958/1-eng-GB/Object11. to alias 'original' in directory 'var/ezwebin_site/storage/images-versioned/1958/1-eng-GB'
Unsupported node: ellipse<br>
Unsupported node: line<br>

Warning: PHP	Feb 07 2008 08:56:35
DOMDocument::loadXML() [<a href='function.DOMDocument-loadXML'>function.DOMDocument-loadXML</a>]: Opening and ending tag mismatch: dns_server_address line 524 and strong in Entity, line: 524 in /Users/samirgreadly/Sites/ez4/kernel/classes/datatypes/ezxmltext/ezxmltexttype.php on line 329
Warning: PHP	Feb 07 2008 08:56:35
DOMDocument::loadXML() [<a href='function.DOMDocument-loadXML'>function.DOMDocument-loadXML</a>]: Opening and ending tag mismatch: address line 524 and strong in Entity, line: 524 in /Users/samirgreadly/Sites/ez4/kernel/classes/datatypes/ezxmltext/ezxmltexttype.php on line 329
Warning: PHP	Feb 07 2008 08:56:35
DOMDocument::loadXML() [<a href='function.DOMDocument-loadXML'>function.DOMDocument-loadXML</a>]: Opening and ending tag mismatch: strong line 524 and paragraph in Entity, line: 524 in /Users/samirgreadly/Sites/ez4/kernel/classes/datatypes/ezxmltext/ezxmltexttype.php on line 329
Warning: PHP	Feb 07 2008 08:56:35
DOMDocument::loadXML() [<a href='function.DOMDocument-loadXML'>function.DOMDocument-loadXML</a>]: Opening and ending tag mismatch: strong line 524 and section in Entity, line: 528 in /Users/samirgreadly/Sites/ez4/kernel/classes/datatypes/ezxmltext/ezxmltexttype.php on line 329
Warning: PHP	Feb 07 2008 08:56:35
DOMDocument::loadXML() [<a href='function.DOMDocument-loadXML'>function.DOMDocument-loadXML</a>]: Opening and ending tag mismatch: paragraph line 524 and section in Entity, line: 690 in /Users/samirgreadly/Sites/ez4/kernel/classes/datatypes/ezxmltext/ezxmltexttype.php on line 329
Warning: PHP	Feb 07 2008 08:56:35
DOMDocument::loadXML() [<a href='function.DOMDocument-loadXML'>function.DOMDocument-loadXML</a>]: Premature end of data in tag section line 1 in Entity, line: 1867 in /Users/samirgreadly/Sites/ez4/kernel/classes/datatypes/ezxmltext/ezxmltexttype.php on line 329
Warning: PHP	Feb 07 2008 08:56:35
DOMDocument::loadXML() [<a href='function.DOMDocument-loadXML'>function.DOMDocument-loadXML</a>]: Premature end of data in tag section line 1 in Entity, line: 1867 in /Users/samirgreadly/Sites/ez4/kernel/classes/datatypes/ezxmltext/ezxmltexttype.php on line 329

And when visiting the node in the admin section

Warning: PHP	Feb 07 2008 08:56:40
DOMDocument::loadXML() [<a href='function.DOMDocument-loadXML'>function.DOMDocument-loadXML</a>]: Opening and ending tag mismatch: dns_server_address line 524 and strong in Entity, line: 524 in /Users/samirgreadly/Sites/ez4/kernel/classes/datatypes/ezxmltext/ezxmltext.php on line 107
Warning: PHP	Feb 07 2008 08:56:40
DOMDocument::loadXML() [<a href='function.DOMDocument-loadXML'>function.DOMDocument-loadXML</a>]: Opening and ending tag mismatch: address line 524 and strong in Entity, line: 524 in /Users/samirgreadly/Sites/ez4/kernel/classes/datatypes/ezxmltext/ezxmltext.php on line 107
Warning: PHP	Feb 07 2008 08:56:40
DOMDocument::loadXML() [<a href='function.DOMDocument-loadXML'>function.DOMDocument-loadXML</a>]: Opening and ending tag mismatch: strong line 524 and paragraph in Entity, line: 524 in /Users/samirgreadly/Sites/ez4/kernel/classes/datatypes/ezxmltext/ezxmltext.php on line 107
Warning: PHP	Feb 07 2008 08:56:40
DOMDocument::loadXML() [<a href='function.DOMDocument-loadXML'>function.DOMDocument-loadXML</a>]: Opening and ending tag mismatch: strong line 524 and section in Entity, line: 528 in /Users/samirgreadly/Sites/ez4/kernel/classes/datatypes/ezxmltext/ezxmltext.php on line 107
Warning: PHP	Feb 07 2008 08:56:40
DOMDocument::loadXML() [<a href='function.DOMDocument-loadXML'>function.DOMDocument-loadXML</a>]: Opening and ending tag mismatch: paragraph line 524 and section in Entity, line: 690 in /Users/samirgreadly/Sites/ez4/kernel/classes/datatypes/ezxmltext/ezxmltext.php on line 107
Warning: PHP	Feb 07 2008 08:56:40
DOMDocument::loadXML() [<a href='function.DOMDocument-loadXML'>function.DOMDocument-loadXML</a>]: Premature end of data in tag section line 1 in Entity, line: 1867 in /Users/samirgreadly/Sites/ez4/kernel/classes/datatypes/ezxmltext/ezxmltext.php on line 107
Warning: PHP	Feb 07 2008 08:56:40
DOMDocument::loadXML() [<a href='function.DOMDocument-loadXML'>function.DOMDocument-loadXML</a>]: Premature end of data in tag section line 1 in Entity, line: 1867 in /Users/samirgreadly/Sites/ez4/kernel/classes/datatypes/ezxmltext/ezxmltext.php on line 107
Timing:	Feb 07 2008 08:56:40
Module end 'content'
Timing:	Feb 07 2008 08:56:40
End

Ekkehard Dörre

Friday 29 February 2008 3:10:07 am

Hi,

for Neooffice on Mac I made a tutorial:
http://ez.no/developer/forum/developer/tutorial_odf_ext_convert_word_pdf_mac_os_x_10_4

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Samir Greadly

Friday 29 February 2008 3:21:29 am

Hi Ekke,

I've already tried the link beforehand, and it still gives me the same problems as shown above. I'm still stuck in square 1, and cannot seem to move forward...

I'd appreciate the help.

Thanks.

Samir Greadly

Tuesday 27 May 2008 2:48:11 pm

Hi,

I'd just like to say that i'm still having this problem.. Still would like help on how to fix it.

Thanks.

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu