View Issue Details

IDProjectCategoryView StatusLast Update
0017378ScribusScripterpublic2025-01-18 08:42
Reportertanzeem Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
PlatformPythonOSDebianOS Version12
Product Version1.6.2 
Summary0017378: Hyperlinks not clickable in the exported PDF when html content imported using Scripter API
DescriptionI used the following code to import HTML content with hyperlinks pointing to other websites. I find the links are rendered but not clickable. Also bold content is not rendered
Code used:# Create text frame if not provided
            if text_frame is None:
                text_frame = scribus.createText(x, y, width, height)

            # Set base paragraph style
            scribus.setParagraphStyle(base_style_name, text_frame)

            # Create temporary file to store HTML content
            temp_file_handler = TemporaryFileHandler(html_content)
            html_file_path = temp_file_handler.create_temp_file()

            # Insert HTML content into frame
            scribus.insertHtmlText(html_file_path, text_frame)

            # Clean up temp file
            temp_file_handler.delete_temp_file()

            # Enable text flow around frame if needed
            scribus.setTextFlowMode(text_frame, 1) # 1 = flow around frame shape

            # Set frame properties
            scribus.setTextAlignment(scribus.ALIGN_BLOCK, text_frame) # Justify text
            scribus.setTextVerticalAlignment(0, text_frame) # Top alignment

            # Layout text in frame
            scribus.layoutText(text_frame)

            return text_frame
Steps To ReproduceRun Scripter API to import HTML content having hyperlinks and bold,italic,underlined text
Tagshyperlink
PatchNo

Relationships

child of 0017281 new Adding hyperlinking as a text property 

Activities

ale

2025-01-16 15:15

manager   ~0051920

not possible until the hyperlinks can be defined as a property of the text.

jghali

2025-01-16 19:08

administrator   ~0051922

Yep, importing hyperlinks is currently not expected to work because of this limitation.

tanzeem

2025-01-18 07:08

reporter   ~0051927

Currently i find that when hyperlinks are rendered. There is a number added next to the link, eg see the 1 in Appendix 3.1.3 [1].
Then at the bottom of the page, they are listed like:

External Links
[1] https://spb.kerala.gov.in/economic-review/ER2023/appendix/316.html

If there are multiple such links, These may overflow the current page and overlap the content of the next page or may be hidden in between pages when rendered as pdf.
Instead can we have a new page attached with all the links of pages at the end of the document by adding a page at the end of document, instead of having it and the end of each page

ale

2025-01-18 08:42

manager   ~0051928

i've opened a topic in the forums for discussing hyperlinks as text properties...

https://forums.scribus.net/index.php/topic,5832

Issue History

Date Modified Username Field Change
2025-01-16 12:56 tanzeem New Issue
2025-01-16 12:56 tanzeem Tag Attached: hyperlink
2025-01-16 15:13 ale Relationship added child of 0017281
2025-01-16 15:15 ale Note Added: 0051920
2025-01-16 19:07 jghali Priority urgent => normal
2025-01-16 19:08 jghali Note Added: 0051922
2025-01-18 07:08 tanzeem Note Added: 0051927
2025-01-18 08:42 ale Note Added: 0051928