sovrastampa pdf su pdf (meglio su OpenOffice)

Micky Del Favero micky@mesina.net
Sab 15 Mar 2008 22:56:08 CET


Massimo <massimo@mail.studiomasson.it> writes:

> avrei l'esigenza di produrre una "stampa pdf" su un altro pdf.

[...]

> Avete qualche suggerimento o link utile già pronto?

Con openoffice non ho idea di come fare. Perché poi perdere tempo a
cliccare quando puoi farlo tutto in automatico con uno script?

In perl puoi farlo usando il modulo PDF::API2 non è difficile, ma
richiede la stampa che vuoi fare sia sufficientemente strutturata perché
è abbastanza a basso livello, un manuale (praticamente l'unico esistente
a parte una presentazione fatta, mi pare, dall'autore a Usenix qualche
anno fa :-) ) lo trovi qui: http://rick.measham.id.au/pdf-api2/ Oppure
sempre in perl col modulo PDF::Report che è un'interfaccia semplificata
a PDF::API2.
Esistono comunque altri moduli come PDF::Report e Text::PDF,
quest'ultimo modulo ha parecchie funzioni per fare un po'di tutto.

libpdf-api2-perl:
Description: provides the functions for creating PDF documents in Perl
 This module started as a nice API around the Text::PDF modules created by
 Martin Hosken.
 .
 Features:
  - Works with more than one PDF file open at once
  - It presents a object-oriented API to the user
  - Supports the 14 base PDF Core Fonts
  - Supports TrueType/OpenType fonts with both TT and CFF Outlines
  - Supports Adobe-Type1 Fonts (pfb/pfa/afm)
  - Supports native Embedding of bitmap images (jpeg,ppm,png)
  - Supports modification of existing pdfs and import/cloning of pages
  - Lite version of the api for first-timers


libpdf-create-perl:
Description: Create PDF files
 PDF::Create allows you to create PDF documents using a large number
 of primitives, and emit the result as a PDF file or stream.
 PDF stands for Portable Document Format.
 .
 Documents can have several pages, a table of content, an information
 section and many other PDF elements. More functionnalities will be
 added as needs arise.
 .
 Documents are constructed on the fly so the memory footprint is not
 tied to the size of the pages but only to their number.
 .
  Homepage: http://sourceforge.net/projects/perl-pdf/


libpdf-report-perl:
Description: simplified PDF report generator
 PDF::Report is written around Alfred Reibenschuh's PDF::API2. It
 provides methods to create a PDF document with text, lines, color and
 graphics


libtext-pdf-perl:
Description: Relatively low-level interface for manipulating PDFs
 This module provides a strong base for working with PDF files. It may be
 a bit hard to use for novices, but it is powerful enough for many other
 important Perl modules for PDF generation to depend on it.


Se scrivere Perl non ti aggrada puoi convertire il pdf in postscript con
pdf2ps e dopo con le psutils e psselect dovresti riuscire a fare ciò che
vuoi. 

O con pstoedit converti il pdf in un file vettoriale editabile, forse,
in un modo più semplice. 

O, e forse è ciò che cerchi, pdfjam che è un insieme di utilità tra cui
pdfjoin che "concatenates multiple PDF documents"

Ed infine, probabilmente più comodamente installi pdftk che:

Description: A useful tool for manipulating PDF documents
 If PDF is electronic paper, then pdftk is an electronic stapler-remover,
 hole-punch, binder, secret-decoder-ring, and X-Ray-glasses. Pdftk is a
 simple tool for doing everyday things with PDF documents. Keep one in the
 top drawer of your desktop and use it to:
  - Merge PDF documents
  - Split PDF pages into a new document
  - Decrypt input as necessary (password required)
  - Encrypt output as desired
  - Fill PDF Forms with FDF Data and/or Flatten Forms
  - Apply a Background Watermark
  - Report PDF on metrics, including metadata and bookmarks
  - Update PDF Metadata
  - Attach Files to PDF Pages or the PDF Document
  - Unpack PDF Attachments
  - Burst a PDF document into single pages
  - Uncompress and re-compress page streams
  - Repair corrupted PDF (where possible)
 .
  Author: Sid Steward <ssteward@accesspdf.com>
  Homepage: http://www.accesspdf.com/pdftk

HTH, Micky
-- 
What's this hash prompt on my terminal mean?
Micky Del Favero  -  System Manager  &  BOFH


Maggiori informazioni sulla lista blug