Re: [support] File upload and convert

Earnie Boyd <[email protected]> Tue, 27 Nov 2012 08:21:39 -0500
Newsgroups gmane.comp.php.drupal.devel,gmane.comp.php.drupal.support
Message-ID <CA+sc5mmmNTE4rj0TPsVi8YL6DcOomFuXcyC6XgmbAS5Uv0sMUw@mail.gmail.com>
Please use the [email protected] for this and do not cross post to
both.  If you're unsure of which to use always choose support.

Earnie

On Mon, Nov 26, 2012 at 7:32 PM, Chris Miller <[email protected]> wrote:
> Hi Folks,
>
> I have a content type with TWO file fields, in which I will designate TWO
> PDFs.  On upload completion I want to run something like: "exec(pdftk f1.pdf
> background f2.pdf output f1.pdf)".  This will "brand" f1.pdf.
>
> I don't see any standard mechanism and so I'm not sure how to go about this.
> I have a general understanding, but that doesn't answer the question.  I am
> sure I don't want to intercept all possible uploads; just the uploads from
> this specific content type.  So, can I define a file upload hook which is
> scoped to this specific content type?  I haven't seen anything that makes me
> believe I can.  Can I create a custom file field to use any time I need to
> perform a conversion?  Can my custom file field "extend" the existing file
> field, so I don't have to port improvements/bugfixes to my custom file field
> version?
>
> So many questions...  (-:
>
> Thanks for the help,
>
> Chris.
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]



-- 
Earnie
-- https://sites.google.com/site/earnieboyd