Is it possble to send a pdf doc. by mail.

Author Message

Stefan Catalin

Friday 18 November 2005 9:39:05 am

A user can see the pdf by clicking on a link .../content/pdf/[nr].
I have to be able to send that pdf by mail.

I did not found many posts that would help me.
If you have some code that is usefull for what i have to do, please post a message.
Thanks.

Ɓukasz Serwatka

Sunday 20 November 2005 11:54:53 pm

This is not possible by default with eZ publish. However is possible with custom programming, you can write your own module with such feature.

Look here for more info:
http://ez.no/products/ez_publish_cms/documentation/development/extensions/module/module_tutorial_part_1

Look also on kernel/content/pdf.php

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Stefan Catalin

Sunday 27 November 2005 9:38:53 am

Worked perfect.

Nathan Kelly

Sunday 27 November 2005 7:07:42 pm

Hi Stefan, did you get this to work? I'm interested in setting up the same thing, I have looked into making my own module but it's a little over my head (on a programing level).

Could you please give me some pointers on how you got this working.

Cheers!

Pardon me while I burst into flames...

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 06:13:03
Script start
Timing: Jan 19 2025 06:13:03
Module start 'layout'
Timing: Jan 19 2025 06:13:03
Module start 'content'
Timing: Jan 19 2025 06:13:04
Module end 'content'
Timing: Jan 19 2025 06:13:04
Script end

Main resources:

Total runtime0.8677 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0130 589.2891152.6406
Module start 'layout' 0.01300.0027 741.929739.4766
Module start 'content' 0.01560.8507 781.4063586.7891
Module end 'content' 0.86640.0014 1,368.195312.4375
Script end 0.8677  1,380.6328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.3447160.0002
Check MTime0.00130.1522160.0001
Mysql Total
Database connection0.00840.971710.0084
Mysqli_queries0.808793.1927620.0130
Looping result0.00060.0698600.0000
Template Total0.830095.620.4150
Template load0.00200.224720.0010
Template processing0.828095.422220.4140
Template load and register function0.00020.018810.0002
states
state_id_array0.00120.139010.0012
state_identifier_array0.00150.169320.0007
Override
Cache load0.00170.1906210.0001
Sytem overhead
Fetch class attribute can translate value0.00080.096130.0003
Fetch class attribute name0.00110.121760.0002
XML
Image XML parsing0.00130.153230.0004
class_abstraction
Instantiating content class attribute0.00000.001560.0000
General
dbfile0.00090.1052240.0000
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs