Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The organization I run openchurch for, uses the bulletin feature, but unfortunately, they have two pdf files, "inside" and "outside". I have found a solution to merge them into one pdf file, but I am not sure how to implement it into the add bulletin content node. i would need 2 file upload forms on the node, and also need help making drupal process this code with the uploaded pdf files. if i can at the very least get pointed in the right direction (what features i need to use, etc) i would appreciate it greatly.
code:
http://www.johnboy.com/blog/merge-multiple-pdf-files-with-php
Comments
Comment #1
www.deweducation.com CreditAttribution: www.deweducation.com commentednice
Comment #2
linwiz CreditAttribution: linwiz commentedI have created a second upload field on the node creation form, and have tried to create a "Rule" for creating new content.
the code below is never executed. i have working php code, i just need to figure out how to make drupal use it.
here is the Rule i am now working with:
UPDATED:
Comment #3
drupalninja99 CreditAttribution: drupalninja99 commentedThis is a strange request outside of the scope of OpenChurch. If you have multiple PDF files, why not just update the field to support multiple files?
/admin/structure/types/manage/openchurch-bulletin/fields/field_oc_bulletin_file
That is what I would do, as it's much simpler.
Comment #4
drupalninja99 CreditAttribution: drupalninja99 commented