Author Topic: RE: Script for Inserting PDF File and making Overlays  (Read 1532 times)

TexAgg

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
  • Scribus User
RE: Script for Inserting PDF File and making Overlays
« on: July 09, 2015, 09:18:47 pm »
Hello,

I would like to see if anyone could make a script that would take a PDF, resize it, and then overlay some text and/or graphics over parts of it, so that it could be exported back to PDF.

The original PDF is generated by a mailing program, and is a label. Unfortunately, the label is branded by some company that I don't like. What I want to do is impose a text and/or PDF on sections of the generated label, then export the result back into a PDF. This would allow me to rebrand the PDF into something more useful.

Anyone want to take a stab at it?

Nermander

  • Hero Member
  • *****
  • Posts: 1306
  • Karma: 17
Re: RE: Script for Inserting PDF File and making Overlays
« Reply #1 on: July 10, 2015, 09:45:22 am »
Wouldn't it be easier to edit the PDF? Or is it encrypted/locked for edit?

GarryP

  • Hero Member
  • *****
  • Posts: 1600
  • Karma: 25
  • Scribus User
Re: RE: Script for Inserting PDF File and making Overlays
« Reply #2 on: July 10, 2015, 11:54:48 am »
Make sure that the design of the label isn't copyrighted before you try and re-use it. It would be unusual for it to be but you never know unless you find out. Different countries have different copyright laws. Better to be safe than sorry.

TexAgg

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
  • Scribus User
Re: RE: Script for Inserting PDF File and making Overlays
« Reply #3 on: July 10, 2015, 05:40:58 pm »
The PDF file is auto-generated by USPS software. I will generate  10-20 labels. All the graphics are in exactly the same positions on each label, so a script that would take the PDF and place a graphic at X-coordinates would be perfect. I would also like an optional graphic area for drop-shipping purposes.

It has a banner ad area where I would like to replace the corporate ad with another graphic. I usually cut off this area when I tape the label to the package.

The bottom space is white area that again is usually cut off. I want to add a message in this area.

I'd be willing to offer a few bucks to someone for the work. It would definitely save me a lot of time vs manually doing all this with stickers and scissors.
« Last Edit: July 10, 2015, 05:43:33 pm by TexAgg »

Nermander

  • Hero Member
  • *****
  • Posts: 1306
  • Karma: 17
Re: RE: Script for Inserting PDF File and making Overlays
« Reply #4 on: July 11, 2015, 11:15:40 am »
I think there are other tools that can solve that task better than Scribus, my first try would be ImageMagick (I think the compose tools can do what you want). But you may need to convert the PDF to TIFF or PNG first, I'm not sure ImagaMagick can work with PDF.


 

palmate