[Scribus] Code fixing (pdf writing with embedded object)

Peter Schmidt sp
Mon Oct 15 12:54:12 CEST 2007


If you insert an object in a text frame (this frame is on a page) (between two 
characters) and insert a new page before this page (the text frame is on this 
page) and write a pdf from document, then the inserted object in the text 
frame won't be in the pdf, because the inserted object is not on the original 
page. That's why I think if an object is an inserted (embedded) object (in a 
text frame), then pdf writer doesn't need to check position of the object, 
but needs to check position of the text frame.

On Friday 12 October 2007 15:13, Gregory Pittman wrote:
> avox wrote:
> > Peter Schmidt-2 wrote:
> >> Dear All,
> >>
> >> I found a small error in the pdf writer and corrected it. If an embedded
> >> object is not on the page, then this object won't be in the written pdf.
> >> That's
> >> why I wrote a new line before position of object checking. That's way
> >> the embedded object will plot in the pdf.
> >> Part of code in the pdflib.cpp:
> >> if(!embedded) //if this is not an embedded object, then needs to check
> >> just
> >> position of object (in my opinion)
> >> 		if (!( QMAX( x, x2 ) <= QMIN( x+w, x2+w2 ) && QMAX( y, y2 ) <= QMIN(
> >> y+h1,
> >> 		y2+h2 )))
> >> 			return tmp;
> >>
> >> How can I share this observation with the developers?
> >
> > The best way would be to file a bug at http://bugs.scribus.net , describe
> > how one can trigger this bug and attach a patch with your code changes.
> > We also hang out on IRC: #scribus on freenode.net , if you want to talk
> > about it first. Best time is European evenings.
>
> I had noticed this in the past, but considered that it was probably a
> feature rather than a bug. Why would you want something in the PDF
> that's not on the page? Is that considered a proper or valid PDF?
>
> Greg
> _______________________________________________
> Scribus mailing list
> Scribus at nashi.altmuehlnet.de
> http://nashi.altmuehlnet.de/mailman/listinfo/scribus



More information about the scribus mailing list