Generating PDF files on the fly

Author Message

Eirik Alfstad Johansen

Saturday 23 October 2004 2:16:46 am

Hi guys,

I'm trying to learn a little something about generating PDF files on the fly. My problem is this:

When I do content/pdf/[node_id] on my demo site running 3.4.2, I'm asked to open a file named [node_id] of the file type Adobe Acrobat Control for Active X.

However, when I select "Open", I get the error msg:

[error_msg]
Can not download [node_id] from www.demosite.com.

Can not open this Internet area. The area in question is either unavailable, or does not exist. Try again later.
[/error_msg]

Am I missing something here?

Thanks in advance !

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Ekkehard Dörre

Saturday 23 October 2004 6:12:13 am

Hi,
click
http://demo.ezpublish.no/news/content/pdf/82
is this works,:
1. Check permissions in ezPublish
2. Check URL
if not
2. Try another Browser not IE. e.g. Firefox or Mozilla or Opera or Safari or Konquerer

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

Eirik Alfstad Johansen

Saturday 23 October 2004 6:34:56 am

Hi ekke,

Thanks a lot for helping me out. When I click the URL you provided, I do get a PDF document. However, I can't seem to figure out how this URI is constructed. What is the syntax?

Thanks in advance !

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Eirik Alfstad Johansen

Saturday 23 October 2004 6:44:36 am

Hi ekke,

After examining my own demo site, I discovered that the "news" part is the name of the siteaccess and not a module nor a node. So I guess I should use content/pdf/[node_id] as the URI. However, this only works for nodes of the article class. Shouldn't there be a fallback PDF template for nodes of other classes as well?

Thanks in advance !

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Eirik Alfstad Johansen

Saturday 23 October 2004 6:52:58 am

Hi again,

I'm sorry for posting so many times, but I wouldn't want you to spend time answering something I've already discovered myself.

This is where I'm at:

When I go to nyheter/latest_updates_from_us on my demo site and click the "Download a PDF version of this page" link, the PDF appears as supposed to. However, if I copy and paste the exact same URL (http://ezpdemo.netmaking.no/index.php/content/pdf/80) into the URL field of the web browser, I get the error as described in my first post.

How can the URL be treated differently depending on whether I click a link or copy'n'paste it into the URL field?!

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Marco Zinn

Saturday 23 October 2004 10:50:02 am

Hi Eirik,

just to let you know: When i open the URL, that you just posted, i get a very nice PDF in my Firefox browser.
Your PDF even looks better than the one from demo.ezpublish.no

Marco
http://www.hyperroad-design.com

Eirik Alfstad Johansen

Sunday 24 October 2004 2:57:31 am

Hi Marco,

Did you click the link, or copy'n'paste it into the URL bar? It actually makes a difference in my IE 6.0.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Ekkehard Dörre

Sunday 24 October 2004 7:55:36 am

IE 6.0 problem. Click on link works, via addressbar not.

Look, the header is in both cases OK, wondering if not ;-)
So the result should be the same.
Copy in bar:

http://demo.ezpublish.no/news/content/pdf/82

GET /news/content/pdf/82 HTTP/1.1
Host: demo.ezpublish.no

HTTP/1.x 200 OK

Last-Modified: xxx
Content-Language: eng-GB
Content-Length: 2044
Content-Transfer-Encoding: binary
Accept-Ranges: bytes

Content-Type: application/pdf
----------------------------------------------------------
Click on link:
http://demo.ezpublish.no/news/content/pdf/82

GET /news/content/pdf/82 HTTP/1.1

HTTP/1.x 200 OK

Content-Language: eng-GB
Content-Length: 2044
Content-Transfer-Encoding: binary
Accept-Ranges: bytes

Content-Type: application/pdf
----------------------------------------------------------

So it should depends on the new security settings after new "Service Pack" 2
Your ActiveX is, when clicking link, more thrusty (Different Security Zone) then via direkt input. This makes no sense for You? -> market leader

Greetings ekke

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

Ekkehard Dörre

Sunday 24 October 2004 8:20:34 am

... and about "funny results" while surfing IE from Tom Liston:

Follow the Bouncing Malware - Part I
http://isc.sans.org/diary.php?date=2004-07-23
german: http://www.heise.de/security/artikel/49687

Follow the Bouncing Malware - Part II
http://isc.sans.org/diary.php?date=2004-08-23
german: http://www.heise.de/security/artikel/50377

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

Paul Forsyth

Sunday 24 October 2004 10:08:35 am

I've hit ie sp2 problems before. I havent seen this particular problem though.

http://ez.no/community/forum/developer/ie_xp_sp2_crashes

paul

Norman Leutner

Monday 25 October 2004 11:50:27 pm

Nice Service Pack ;)

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

Eirik Alfstad Johansen

Tuesday 26 October 2004 2:50:51 am

[quote]
I've hit ie sp2 problems before. I havent seen this particular problem though.
[/quote]

Actually, this problem occured on a machine which hasn't got SP2 installed yet.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Ekkehard Dörre

Monday 22 November 2004 7:22:26 am

... and more about "funny results" while surfing IE from Tom Liston:

Follow the Bouncing Malware - Part III
http://isc.sans.org//diary.php?date=2004-11-04
german: http://www.heise.de/security/artikel/52988

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

Ekkehard Dörre

Thursday 02 December 2004 5:37:13 am

... and Part IV, then information is complete:

Follow the Bouncing Malware - Part IV
http://isc.sans.org/diary.php?date=2004-11-24

Schädlingen auf der Spur - Teil IV
http://www.heise.de/security/artikel/53746

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

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