[Scribus] importing multi-page pdf

Craig Bradney cbradney
Thu Feb 2 00:52:47 CET 2006


On Thursday 02 February 2006 00:40, Gregory Pittman wrote:
> Min Xu wrote:
> > Dear all,
> >
> > I have found a way to import multi-page pdfs. But it is repetitive.
> > I am trying to write a script to automate the process. But I have
> > encountered a problem. If someone on this list can kindly help me
> > out, I'd really appreciate it.
> >
> > Manual importing multi-page pdf
> > -------------------------------
> >
> > I found I can do the following (on linux) to import it:
> >
> > 1. use pdftops to extra a single page from the pdf
> > 2. use import ps/eps to import the page in a tmp.sla file
> > 3. use "page->import" to import the page from tmp.sla to the final
> > destination file
> > 4. repeat 1-3 for every page
> >
> > Problem with scripting it
> > -------------------------
> >
> > I tried to write a script to automate this process. But I
> > found the scripter API does not (or I missed it) have function
> > to import eps/ps, or to import page(s) from a .sla file.
> >
> > I ended up using loadImage to do the job of import ps. But
> > the imported image has very low quality and the resulting
> > file is huge when I export the final .sla back to a pdf.
> >
> > Can someone tell me how to get around this problem?
> >
> > What I want to do
> > -----------------
> >
> > What I want to do is use scribus as a pdf annotator. I knew
> > acrobat can do it. I tested scribus, it can do pdf annotation
> > on .sla file, but not directly on pdf files. So I try to
> > convert a pdf back to .sla.
>
> If you can find a way to break your PDFs into single page PDFs, you can
> use my script scribalbum.py to import them automatically into image
> frames. As written, the script imports PDFs fine, but only the first page.
>
> I've put in on the Wiki:
> http://wiki.scribus.net/index.php/Automatic_import_of_images_from_a_directo
>ry_using_a_script
>
> You will no doubt want to modify this for your purpose. Try it out on a
> directory with image files in it to see if you like the output.
> I know it will work on 1.2.x and 1.3.x versions of Scribus.
>
> When I have looked at this before, it seemed that the image quality was
> pretty good with PDFs but I did not look in detail.
>

I happened to move some of the code around today for PDF import. I guess I'll 
have a go at doing this within Scribus automagically.

What are peoples thoughts on the destination frames? IE, apart from the 1st, I 
would have to create new frames for the subsequent pages. ???????????????????

Craig
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://nashi.altmuehlnet.de/pipermail/scribus/attachments/20060202/8844e724/attachment.pgp 



More information about the scribus mailing list