[scribus-dev] GSOC: PDF Embedding

Andreas Vox vox at steercom.de
Fri Jul 3 18:22:16 CEST 2009

Hi Thach!

I think the first thing should be to find out what colorspaces are used in
the PDF.
In addition it might also worth to check for used/embedded fonts and

I suggest a new sourcefile with code that uses Podofo to read the PDF and

- colorspace and transparency settings (blendmode, softmask, alpha) in
graphic states
- use of G, g, RG, rg, K, and k operators
- colorspaces and resolution of bitmap images

This code can then used by the preflighter to warn the user about issues. In
my view that should be enough to remove the "EXPERIMENTAL" flag from PDF
embedding. We can also enforce rasterizing the PDF to fix the colorspace and
compatibility issues.

Later you/we can extend the code to fix colorpace issues or embed missing
fonts. The PDF reading code may also evolve into a PDF import function


> -----Ursprüngliche Nachricht-----

> Von: Thach Tran [mailto:tranngocthachs at gmail.com
<mailto:tranngocthachs at gmail.com> ] 

> Gesendet: Mittwoch, 1. Juli 2009 22:03

> An: Andreas Vox

> Betreff: [GSoC] PDF Embedding


> Hi,


> Speaking of my next task, it is the PDF embedding with color 

> management thing. Could you give me some hints on how to get 

> started? 

> I read in pdflib_core that basically it copies every objects 

> from the embedding file into the current file. What should I 

> do first if I want to manage the colors of the embedding PDF? 

> I guess the code has to look into the stream content of the 

> embedding file to find the colors it used, isn't it? I'm 

> quite confused how would I do that though.


> Thach


More information about the scribus-dev mailing list