Jump to content

Recommended Posts

Posted

I'm trying to make the following work flow happen in Affinity Publisher (V2):

  • Put together a large body of (simply formatted) text outside Affinity Publisher programmatically. Think possibly hundreds of pages. Ideally, this would be HTML or something else that I can build myself, and that contains basic styling information such as headings (h1, h2), bold/italics (strong, em), and cross-references (a). But worst case, it can be something like a long DOCX file.
  • Place this big file into an Affinity Publisher project, and make Designer do things such as apply styles (e.g. all h1 headings will look such and such) and use Auto Flow.
  • Do all the design work from there.

Is this not possible? I've been trying but so far, no luck:

  • Publisher doesn't let me import or "Place" HTML.
  • When I copy paste HTML, it doesn't retain any styling information (bold / italic), let alone semantic information (h1, h2, li)
  • When I create an RTF file in TextEdit (I'm on a Mac), then go to "Place" it, the file isn't selectable.
  • When I do this with a DOCX file (also from TextEdit), I can select the file, but semantic information isn't there. Do I need to use MS Word, then?
  • I can't see any way to do this programmatically (say, create a file in some semi-proprietary Affinity format that could be imported).

 

Posted

If you have an RTF or DOCX file that contains formatting information, it will be available in Publisher after you Place the file into a Publisher document.

Perhaps you're not creating your files properly? Can you share a sample with us?

If you Open the file you created in Word or LibreOffice does it contain formatting?

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Laptop 2: Windows 11 Pro 24H2,  16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU
iPad:  iPad Pro M1, 12.9": iPadOS 18.5, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.5

Posted
2 hours ago, Filip H said:
  • When I create an RTF file in TextEdit (I'm on a Mac), then go to "Place" it, the file isn't selectable.

For me here on Mac OS 12.7.2 it is selectable when I use File > Place. This is when I have nothing selected or a Frame Text Text Frame selected in Publisher. Perhaps you have a picture frame selected.

 

2 hours ago, Filip H said:
  • When I copy paste HTML, it doesn't retain any styling information (bold / italic), let alone semantic information (h1, h2, li)

The formatting comes in if I have a Frame Text Text Frame selected, and the text caret is active. 

Mac Pro (Late 2013) Mac OS 12.7.6 
Affinity Designer 2.6.0 | Affinity Photo 2.6.0 | Affinity Publisher 2.6.0 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Posted

Thanks for the replies! Since HTML is closer to what I want than RTF/DOCX, I'm going to try and see if that can work first. I will get to Walt's suggestion about DOCX/RTF afterwards if HTML is not viable. Hope that's okay.

13 minutes ago, Old Bruce said:

The formatting comes in if I have a Frame Text Text Frame selected, and the text caret is active. 

I think I do have Frame Text selected. And I still get unformatted text.

Could you please try copy-pasting the first few paragraphs of this article into Publisher? It's the kind of content I'm trying to import, and a) I know it's properly formatted with semantic tags (such as p for paragraph, h1 for main heading, blockquote for quotes, em for emphasis) and b) it has no extraneous formatting.

Posted
5 minutes ago, Filip H said:

Since HTML is closer to what I want than RTF/DOCX, I'm going to try and see if that can work first

It won't.

 

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Laptop 2: Windows 11 Pro 24H2,  16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU
iPad:  iPad Pro M1, 12.9": iPadOS 18.5, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.5

Posted

This is what it looks like here.

19 minutes ago, Filip H said:

Could you please try copy-pasting the first few paragraphs of this article into Publisher? It's the kind of content I'm trying to import, and a) I know it's properly formatted with semantic tags (such as p for paragraph, h1 for main heading, blockquote for quotes, em for emphasis) and b) it has no extraneous formatting.

ScreenShot2024-01-12at7_36_46AM.png.57e6d453052ca7f2fe8572a9f8617d6c.png

Mac Pro (Late 2013) Mac OS 12.7.6 
Affinity Designer 2.6.0 | Affinity Photo 2.6.0 | Affinity Publisher 2.6.0 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Posted
20 minutes ago, Old Bruce said:

This is what it looks like here.

This is exactly what I'd like to see! I just tried again, first with Cmd-C Cmd-V, then with Drag & Drop, both into an existing Frame Text, and into an empty doc, and I still get this:

Screenshot2024-01-12at17_07_29.thumb.png.82df259f5c2659ce632d005b3227e60c.png

 

Is there a trick to it?

I'm on macOS Ventura 13.6.3, M1 MacBook Pro, Publisher version 2.2.1

 

Posted

Ok, now back to RTF/DOCX. Although the copy pasting of HTML does work when I'm using Safari, I don't think the "semantic" information survives. Everything is [No Style]. Will this be different if I use RTF/DOCX?

Posted
22 minutes ago, Filip H said:

Ok, now back to RTF/DOCX. Although the copy pasting of HTML does work when I'm using Safari, I don't think the "semantic" information survives. Everything is [No Style]. Will this be different if I use RTF/DOCX?

DOCX will keep the styles if you use them. Unfortunately TextEdit cannot apply 'Styles' it doesn't have them, Pages from Apple can and does use them when exporting as a DOCX file. 

Mac Pro (Late 2013) Mac OS 12.7.6 
Affinity Designer 2.6.0 | Affinity Photo 2.6.0 | Affinity Publisher 2.6.0 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Posted

Ok, sorry for discovering this in real time, but importing a DOCX (created in LibreOffice) worked the best, preserving the semantic text styles. So I guess I'll just process the HTML through LibreOffice, which shouldn't be a problem. Then I reconfigure text styles and bam! (Hopefully.)

Thanks for the help!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.