Recent Posts

Pages: 1 2 [3] 4 5 6 7 8 9 10
Text and Typography / Re: Clipping and skewing text
« Last post by dcpurton on July 10, 2018, 04:42:17 am »
One other point of misunderstanding to clear up in this thread is that clipping occurs at the point when the object is *rasterised*. i.e., no where does PostScript or PDF or any drawing program calculate a new path for a clipped object based on the clipping path.

You *can* do this of course. You can find the union or intersection of two paths in Inkscape, for example.

Clipping is a core feature of video cards and graphics APIs (e.g., OpenGL) as well.
Text and Typography / Re: Clipping and skewing text
« Last post by dcpurton on July 10, 2018, 04:27:01 am »
Just to show this in Scribus, here's a screenshot of clipping.pdf opened (correctly clipped). And showing what happens when you ungroup this object.

For the record, you can import SVG files (via File menu) with clipping and they also display correctly (but still can't be ungrouped without losing the clipping path).

Text and Typography / Re: Clipping and skewing text
« Last post by dcpurton on July 10, 2018, 02:37:03 am »

I just used PostScript as my example file because it's easy to write by hand and read and see what is going on. You can convert that file to PDF using Ghostscript and it will contain the same clipping path, text and arc.

If you do this and uncompress the PDF the relevant PDF object looks like this:

Code: [Select]
7 0 obj
/Length 271
q 0.1 0 0 0.1 0 0 cm
/R7 gs
1000 1000 1000 1000 re W n
0 g
10 0 0 10 0 0 cm BT
/R8 25 Tf
1 0 0 1 90 150 Tm
(Clipped text)Tj
10 w
0 G
2100 1500 m
2100 1831.37 1831.37 2100 1500 2100 c
1168.63 2100 900 1831.37 900 1500 c
900 1168.63 1168.63 900 1500 900 c


q and Q are equivalent to gsave and grestore.

W sets the clipping path. The clipping rectangle is set:

Code: [Select]
1000 1000 1000 1000 re W n
i.e., a rectangle starting at (1000, 1000) with width (1000,1000). n stands for no-op. It means the path is neither filled nor stroked.

You can also see that the string "Clipped text" is in the PDF, even though it is clipped when displayed.

I also attached clipping.pdf which was converted from in my previous post. You could also import this into Inkscape and then ungroup and release the clip to reveal the three objects.

There is also *some* support for this in Scribus. As I said in my previous post, you can open the PDF directly (e.g., from commandline: scribus clipping.pdf) and the clipping path is preserved. You can then happily export it to PDF from within Scribus and the clipping path will continue to be preserved in Scribus' PDF export.

Note that this is *not* imported into an image frame. You can ungroup the arc and circle and confirm this (although you will lose the clipping path).

No PDF clipping path is preserved if you import the PDF into an existing document using File→Import…→Get Vector File… I find this surprising!

Support for the PostScript version is *better* in 1.4.7 than in 1.5.5svn. It works both opening directly and importing via file menu. 1.4.7 does not importing PDFs this way, of course.

I have already submitted a bug at but this was before I realised that the issues were more complicated.

I *may* be able to look at this issue. But my skills are more at the level of fixing bugs, rather than implementing clipping properly in Scribus for its own objects which is what I think needs to happen first before issues with import from PDF, PS, and SVG are dealt with.
Linux / Link on sourceforge for opensuse says it is a link to 1.5.4 but isn't
« Last post by hujraad on July 09, 2018, 03:50:14 am »
Looking to download 1.5.4 but when you go the the supposed link, it is 1.4.7. Anyone know where the openSUSe rpm link can be found?

Thank you in advance
General Discussion / Re: Help with text drop caps
« Last post by a.l.e on July 08, 2018, 07:34:47 pm »
i don't 100% get where your issue is...

but i fear that you just need to get comfortable with

- editing the text in the frame (and not use the story editor)
- apply the formatting to a selection (in the frame) with the properties palette (window > properties)

does it help you?

Text and Typography / Re: Clipping and skewing text
« Last post by a.l.e on July 08, 2018, 07:31:52 pm »
very interstingd cpurton!

from my side:

- i did not know that pdf supports clipping (of course i knew about clipping bitmaps).
- i don't think that the ps round trip is nowadays really interesting (when programming resources are scarce), but -- if what you write is correct -- scribus should import and export clipping areas in the pdf workflow.
- can you provide an example with text or vectors clipped in a pdf?
- do you have the skills (or you know somebody with the skills) to implement it for scribus?
- and, of course, it should also work when importing svg files...

also, since scribus does not support clipping in the pdf output, it does not support it either for its own shapes (except for bitmap images: that's why it works when you load a pdf in an image frame: it will then be (mostly) treated as a bitmap image).

if somebody can and wants to work in this, we should open a ticket in with a feature request and track there the work to be done.
Installation and Setup / How to use CxF3 palettes?
« Last post by dcpurton on July 07, 2018, 08:00:51 pm »
According to, Scribus can now handle CxF3 colour palettes.

But I can't get them to work. I exported palettes from PANTONE Color Manager in cxf format, but they don't appear in my list of available palettes when I put them in ~/.local/share/scribus/palettes/ (Scribus XML palettes placed here work fine). They don't appear when I put them in the main directory with all the palettes that ship with Scribus. And I can't import them from the Colors and Fills dialog (error is *.cxf does not contain colours which can be imported...).

Am I missing something?

The files exported from PANTONE Color Manager basically look like this (all except one colour removed for brevity):

Code: [Select]
<?xml version="1.0" encoding="UTF-8"?>
<cc:CxF xmlns:cc=""
<cc:Description>PANTONE+ Solid Coated-V3</cc:Description>
<cc:Object ObjectType="Color"
Name="PANTONE Yellow 012 C"
<cc:ColorCIELab ColorSpecification="CS0">
<cc:ColorSRGB ColorSpecification="CS1">
<cc:ColorSpecification Id="CS0">
<cc:Observer Angle="45">2_Degree</cc:Observer>
<cc:ColorSpecification Id="CS1">
<cc:Observer Angle="45">2_Degree</cc:Observer>
Text and Typography / Re: Clipping and skewing text
« Last post by dcpurton on July 07, 2018, 03:46:31 pm »
Just came across this thread while investigating Scribus' handling of clipping. There's a lot of misinformation here... So just for others who come across it.

Firstly, the PDF spec *definitely* includes clipping (See section 4.4.3 of version 1.7 of the spec). It was present in PostScript Level 1 and is present in all PDF versions. This also answers the RIP questions above. All RIPs support clipping.

Clipping doesn't do anything magical, all it does is limit any drawing operation to within the current clipping path. The default clipping path is the whole page. You can clip to any path or even text outlines (though the method is slightly different).

Here's a very simply PostScript file that shows how clipping works:

100 100 moveto
200 100 lineto
200 200 lineto
100 200 lineto
/Times-Roman findfont
25 scalefont
90 150 moveto
(Clipped text) show
150 150 60 0 270 arc

This shows both an arc and some text clipped to a rectangle.

Secondly, Scribus does not support applying clipping paths. But it can import files like this. Sort of.

Curiously, Scribus' handling of files like this (both PS and PDF) is a buggy and inconsistent.

Scribus 1.4.7 can import the above PS file and open it directly correctly. As soon as you ungroup the object the clipping path is lost.

Scribus 1.5.5 svn can open it directly OK, but fails when you try to import it (via File menu). In the latter case, nothing is clipped. More complex clipping examples (e.g., with nested clipping; clipping to complex paths) fail in other ways even when opening directly.

My own view is that Scribus should definitely be able to import such files without getting it wrong. And it probably should include such a clipping tool too.

Clipping isn't an advanced graphics feature, it's a basic feature that should be included in any application that can manipulate text and graphics. This is reflected in the fact that clipping is a core feature of PostScript and PDF.
General Discussion / Help with text drop caps
« Last post by DP01 on July 06, 2018, 11:03:41 pm »

I am using drop caps with each paragraph, i need to add another paragraph without the drop caps showing. I am not sure what i need to do as it wont let me do this.

Can any explain this, thanks.
hi founder   

the low resolution is from the source file.but you might have exported to a .pdf version without support for transparencies (1.3, x/1-a or x/3)…   
either you use .pdf 1.4 or higher or you have to reduce the transparencies in an image editor.   


Thanks, that was the solution, just created the PDF as 1,4 and it looks now fine.
Pages: 1 2 [3] 4 5 6 7 8 9 10