Mantis Issue Tracking for Scribus
· Hosting provided by Anduin.net / Øverby Consulting ·

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0008030 [Scribus] Graphics / Image Frames minor always 09-May-11 22:30 09-Sep-26 20:59
Reporter pspencer View Status public  
Assigned To jghali
Priority normal Resolution fixed Platform x86_64
Status closed   OS Fedora Linux
Projection none   OS Version 10
ETA none Fixed in Version 1.3.6svn Product Version 1.3.5svn
  Target Version Product Build 13445
Summary 0008030: In-line frames do not export to pdf if shifted from one linked frame to another
Description If an in-line frame is created by selecting "Paste" (with an image or render frame previously Copied to the clipboard) into a text frame, the in-line image shows up fine on the screen and moves around properly when nearby text is inserted or deleted, but when exporting to pdf it only shows up if it is still located on the same page as the original image frame from which it was copied.
Steps To Reproduce 1. Create a new 2-page document. Create a text frame on page 1 linked to a text frame on page 2.

2. On page 1, create an image frame, select it and choose copy.
3. Click inside the text frame to edit it. Type some text then choose Paste to create an in-line frame.
4. Delete the original image.

5. Observe the inline image shows up correctly on screen.
6. Export to PDF and observe the inline image shows up correctly there too.

7. Insert some more text into the frame before the image, so that the image is
moved further down the frame.

8. Observe that the image still shows up correctly in its new location on screen.
9. Export to PDF and observe that the image shows up correctly there too.

BUT:

10. Then insert a frame break before the image.
11. Observe that, on screen, the image shows up correctly in its new location inside the linked frame on page 2.
12. However, export to PDF and observe that the image does not show up there at all.

13. Save the document, edit the .sla file and manually change the FRAMEOBJECT's XPOS and YPOS attributes to be somewhere (anywhere) on page 2. (Changing the OwnPage attribute does not seem to be necessary).

14. Then export to PDF and observe that the image now shows up correctly in the right location on page 2.

Additional Information Scribus seems to ignore the XPOS and YPOS attributes of a FRAMEOBJECT when calculating its position (which is understandable, since the position is determined by the surrounding text). And therefore, it does not update XPOS/YPOS if alterations to text cause it to be positioned on a different page.

However, it does seem to look at XPOS and YPOS when calculating visibility, and
if they do not fall within the rectangle of the page on which the FRAMEOBJECT is supposed to be located, the object does not get exported to pdf.

If I'm right in this assessment, then it seems that either the XPOS/YPOS need to be updated when its position is recalculated after text flow changes, or else they need to be ignored when calculating visibility during an export to pdf.
Tags No tags attached.
Attached Files ? file icon spatch1 [^] (774 bytes) 09-Aug-20 23:57

- Relationships

-  Notes
(0022394)
pspencer (reporter)
09-Aug-21 00:01

The attached one-line patch (against release version 1.3.5.1) fixes the problem for me, by having PDF_ProcessItem skip the bounding-box-not-on-page check if processing an embedded item.

I'm not sure if this is the correct approach but it seems to work and solves the problem I reported.
(0022396)
jghali (administrator)
09-Aug-21 23:01

Thanks! Patch has been applied to 1.3.6svn and 1.5.0svn
(0022563)
christoph_s (administrator)
09-Sep-26 20:59

Tested, fixed. Thanks!

- Issue History
Date Modified Username Field Change
09-May-11 22:30 pspencer New Issue
09-May-15 19:25 christoph_s Status new => confirmed
09-Aug-20 23:57 pspencer File Added: spatch1
09-Aug-21 00:01 pspencer Note Added: 0022394
09-Aug-21 23:01 jghali Note Added: 0022396
09-Aug-21 23:01 jghali Status confirmed => resolved
09-Aug-21 23:01 jghali Fixed in Version => 1.3.6svn
09-Aug-21 23:01 jghali Resolution open => fixed
09-Aug-21 23:01 jghali Assigned To => jghali
09-Sep-26 20:59 christoph_s Note Added: 0022563
09-Sep-26 20:59 christoph_s Status resolved => closed



Mantis 1.1.7[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker