View Issue Details

IDProjectCategoryView StatusLast Update
0017378ScribusScripterpublic2025-01-16 19:08
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.

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