Closed (fixed)
Project:
Views PDF
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 May 2011 at 17:59 UTC
Updated:
5 Jan 2012 at 18:23 UTC
Jump to comment: Most recent file
Comments
Comment #1
candelas commentedsubscribing :)
Comment #2
hunziker commentedI see the point. The best way to implement such a functionality, is using the rules module.
At the moment I have to resolve many bugs. I resolve these bugs first and then new functionality has to be implemented.
If someone like to go ahead here, you find in the 6.x-1.x version the mimemail integration module. There I use a similar functionality. A patch for such a functionality is welcome and will be applied immediately.
Comment #3
hozt commentedWould the rules be used to the print the generated pdf file?
I will look at the mime module and see how it can be adapted.
Comment #4
hunziker commentedThe latest 6.x-1.0-beta5 contains a rule that can save PDF as files on the server side. In next days an update for 7.x will also come, that contains the changes of beta5. There the rule thing will be included.
Comment #5
candelas commented0.0 @hunziker you work hard. thanks thanks thanks
i also report anything about this that i will be trying.
Comment #6
hozt commentedFantastic news! Looking forward to start testing the D7 version! Thanks!
Comment #7
candelas commentedhello
i went to rules but i am not able to find it (version 6.x-1.0-beta5 and drupal 6.22).
sure i am not doing well...
can you explain where or how can we do this, please? :)
Comment #8
hunziker commentedYou need to refresh the cache if you dont see it.
Comment #9
hunziker commentedSince there is no activity in this issue i close it and the latest commit contains an implementation of this for 7.x, i close this issue.
Comment #10
hozt commentedCan you clarify how this should work? I see the new action "save pdf", but it is not clear how this rule should be triggered.
As you have designed it is it possible to save the pdf to the server without viewing it?
Could you add a couple of lines to the docs about how to use this feature?
Updated: I think I have it figured out now and it works excellent! I created a rule with that is tied to the event "Content is viewed". Then put in the url that I wanted to trigger the pdf and added the action. It is possible to generate the pdf without viewing the pdf.
Major kudos to you Hunziker!!!
Comment #11
candelas commentedhello
how can you tell which display to use?
i only can get the view.
it would be nice if you put an screen capture as an example for people that have not much knowledge as me :)
thanks for your work, it's a great module!
Comment #12
candelas commentedso at the end i got how to do it :)
since i was asked to write "Enter an absolute path where the view should be saved.", i was trying things like this:
and i got different errors and after investigating, at the end it was only ther relative url sites/default/files/pdfs/pdf_[node:nid].pdf
the only thing that i dont know how to do it is how to pass which display i want to use. is it possible to choose one?
thanks thanks for this great module :) and it is young... i cant think of what it would be in a couple of years!!! :)
Comment #13
candelas commentedi put a screen shot, just in case it helps anybody.
Comment #14
candelas commentedproblem: i get a blank page with the name of the pdf writen twice.
my rule is for when content is going to be saved.
and it checks that the workflow is public.
it creates the pdf, but it doesnt show the page, instead gets a blank page and stays in the url of the edit form.
even if i put a rule action to redirect to the page.
now i am going to try to make a rule for the document to be viewed as @htoz and check if there is a pdf and if not, make it.
if i get it, i will put it here.
edit i discovered a little bug (an echo that i commented and now it works)
more: http://drupal.org/node/1232454
thanks
Comment #15
bofrost commentedIt cost me a lot of time until I read this Issue.
Please change the description in the path form field like writen in #12 (http://drupal.org/node/1169942#comment-4792226) it is very confusing when you write the 100% opposite ... absolute path instead of relative path.
Comment #16
drecute commentedIn my case, I have tried all possibilities, but I keep getting TCPDF ERROR: Unable to create output file: sites/default/files/pdfs/pdf_421.pdf.
I checked the source code and I found out that, it is expecting just a relative Drupal path. According to #12(http://drupal.org/node/1169942#comment-4792226), to find the views display to use, the module makes use of a display named 'pdf'. I think this will need some patch at some point.
System setup
-----------------
- drupal 6.22
- uc_rules 6.x-1.0
- windows server 2003
- views pdf 6.x-1.0
Comment #17
bofrost commentedPlease give us more information, screenshots, views-export, etc.
Comment #18
bofrost commentedI changed the field description from absolute to relative and have committed this to the actual dev version.
Comment #19
drecute commentedSolved!
Typical windows path problems. I used cygwin to change the directory path permissions to 777. But then on windows no new directory will be created when the PDF is about to be saved. So I just dropped it in sites/default/files.
Thanks for the module!
Comment #20
bofrost commented