View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0017378 | Scribus | Scripter | public | 2025-01-16 12:56 | 2025-01-18 08:42 |
Reporter | tanzeem | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | Python | OS | Debian | OS Version | 12 |
Product Version | 1.6.2 | ||||
Summary | 0017378: Hyperlinks not clickable in the exported PDF when html content imported using Scripter API | ||||
Description | I 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 Reproduce | Run Scripter API to import HTML content having hyperlinks and bold,italic,underlined text | ||||
Tags | hyperlink | ||||
Patch | No | ||||
child of | 0017281 | new | Adding hyperlinking as a text property |
|
not possible until the hyperlinks can be defined as a property of the text. |
|
Yep, importing hyperlinks is currently not expected to work because of this limitation. |
|
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 |
|
i've opened a topic in the forums for discussing hyperlinks as text properties... https://forums.scribus.net/index.php/topic,5832 |
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 |