[Scribus] importing multi-page pdf
Min Xu
mxu
Thu Feb 2 02:42:31 CET 2006
Gregory,
Thanks for your wiki article and examples. In fact, I did learn
how to loadImage() from pdf or ps from your scripts. However, I found
the results have low resolution. You can see it here:
http://www.cs.wisc.edu/~xu/tmp/test.gif
Also, I didn't see how to change the resolution for the loaded
ps image. I assume higher resolution can help.
-Min
On Wed, Feb 01, 2006 at 06:40:38PM -0500, 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_directory_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.
>
>
> Greg
> _______________________________________________
> Scribus mailing list
> Scribus at nashi.altmuehlnet.de
> http://nashi.altmuehlnet.de/mailman/listinfo/scribus
More information about the scribus
mailing list