Jump to content
You must now use your email address to sign in [click for more info] ×

Publisher export per page to JPEG and PDF with file name from Data Merge


Recommended Posts

Hi there,

We have designed a event image in Designer and via File > Edit in Publisher brought it into Publisher.
From Publisher we have done a Data Merge from a CSV file on a text field. This has given us as we wanted a few hundred pages with a unique text field on the image. 

Now our challenge is to export all this pages at once into separate files preferable in JPG and PDF each file saved with the unique info of the text field. Other option is to do first all into separate files as JPG and then after that do the same for PDF.

Is this possible to achieve?

Thank you

Link to comment
Share on other sites

Within Publisher you can only export a single file.

Within Designer you can export multiple files using the Export Persona, but you would need to handle each Page of your generated Publisher document separately; you can't do them all at once.

Or, you could Export a multi-page PDF using File > Export using either Publisher or Designer. Then you could Open that PDF in Designer, which will give you a file with one Artboard per PDF page. You could then export all the Artboards to separate files in one operation using the Export Persona in Designer.

-- 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 17.7, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.7

Link to comment
Share on other sites

Hi there,

What do you mean with handle each page of your generated Publisher document separately?
Btw is it possible in Publisher to change the default value from Area from All Pages to Current Page?

The reason we brought the image made in Affinity Designer into Affinity Publisher is to have the Data Merge option on a text field. 
Do you mean that after this Data Merge operation we have to bring it back to Affinity Designer again?

And we need both file types, JPG and PDF.

 

Link to comment
Share on other sites

22 minutes ago, get in shape said:

Do you mean that after this Data Merge operation we have to bring it back to Affinity Designer again?

Walt probably means you would take the Publisher file and export it as a PDF. Then in Designer you open that PDF and it will have each PDF page as a separate Artboard. Now in Designer you can set up a pair of export formats to generate each Artboard (the original individual pages from Publisher) as a JPEG and as a PDF. You do this in the Export Persona of Designer.

The hard part is the naming of the Artboards.

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

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

Link to comment
Share on other sites

57 minutes ago, get in shape said:

What do you mean with handle each page of your generated Publisher document separately?

I mean that if you open the generated .afpub file in Designer, you would need to navigate to each Page, and for each Page you would need to use the Export Persona. You cannot export all the Pages as individual files. That function simply does not exist, for files with Pages.

It does exist, for pages with Artboards. But Data Merge will not create Artboards, only Pages.

-- 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 17.7, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.7

Link to comment
Share on other sites

58 minutes ago, walt.farrell said:

I mean that if you open the generated .afpub file in Designer, you would need to navigate to each Page, and for each Page you would need to use the Export Persona. You cannot export all the Pages as individual files. That function simply does not exist, for files with Pages.

It does exist, for pages with Artboards. But Data Merge will not create Artboards, only Pages.

Thank you for your clarification.

Link to comment
Share on other sites

1 hour ago, Old Bruce said:

Walt probably means you would take the Publisher file and export it as a PDF. Then in Designer you open that PDF and it will have each PDF page as a separate Artboard. Now in Designer you can set up a pair of export formats to generate each Artboard (the original individual pages from Publisher) as a JPEG and as a PDF. You do this in the Export Persona of Designer.

The hard part is the naming of the Artboards.

Ok the Publisher file is exported as a PDF and opened in Designer. 
Now i'm on the Export Persona of Designer but have no idea what do next. Never looked at Export Persona of Designer. 
What should I do next?

Link to comment
Share on other sites

53 minutes ago, get in shape said:

What should I do next?

After switching to the Export Persona:

  1. In the Layers panel, you select all the Artboards (named Page 1, Page 2, etc.) and click the Create Slices button at the bottom of the panel.
  2. In the Slices panel, you make sure they're still all selected, and you click Export Slices. But before that, you need to select the kind of file you're going to be Exporting, and that's beyond what I can explain right now. Someone else might have a good explanation, or you might check the Help, or watch some of the Tutorial videos.

-- 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 17.7, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.7

Link to comment
Share on other sites

Thank you that was the missing step for now. 
I managed exporting all Artboards as separate files, JPG and PDF, at once.

There is a standard slice in the panel that was/is confusing me and I thought I had to do the settings on there. 

I can see there are a lot of options and possibility's Exporting. A long way to learn everything. 

 

11 hours ago, Old Bruce said:

Walt probably means you would take the Publisher file and export it as a PDF. Then in Designer you open that PDF and it will have each PDF page as a separate Artboard. Now in Designer you can set up a pair of export formats to generate each Artboard (the original individual pages from Publisher) as a JPEG and as a PDF. You do this in the Export Persona of Designer.

The hard part is the naming of the Artboards.


Naming for sure is the hard part and any help or ideas are very welcome.

Link to comment
Share on other sites

You can rename slices in the Export Persona like this

image.png.5155ed29271d7b2af69599aa34eb6b92.png

image.png.fcde4fe3895fb9be5f82402056dd3406.png

or use Ghostscript to produce both sets with little effort from the pdf, quite handy if you only have Publisher
gswin64 -dSAFER -sDEVICE=pdfwrite -o NewTitleGS_%d.pdf ExtractingPagesAndImages.pdf
gswin64 -dSAFER -sDEVICE=jpeg -dJPEGQ=85 -o NewTitleGS_%d.jpg ExtractingPagesAndImages.pdf
Results
96312	NewTitleGS_1.pdf		154812	NewTitle.pdf
95441	NewTitleGS_2.pdf		154833	NewTitle_2.pdf
95419	NewTitleGS_3.pdf		154566	NewTitle_3.pdf
				
145405	NewTitleGS_1.jpg		148746	NewTitle_1.jpg
143307	NewTitleGS_2.jpg		146235	NewTitle_2.jpg
143722	NewTitleGS_3.jpg		146502	NewTitle_3.jpg

For a few hundred files use %03d rather than %d and you'll get NewTitleGS_001.pdf etc

Microsoft Windows 11 Home, Intel i7-1360P 2.20 GHz, 32 GB RAM, 1TB SSD, Intel Iris Xe
Affinity Photo - 24/05/20, Affinity Publisher - 06/12/20, KTM Superduke - 27/09/10

Link to comment
Share on other sites

Thank you for your reply. I'll give it a try.

The way I solved renaming a few hunderd files is by using File Explorer - Excel - Command Promt.

-Go to File Explorer 
-Open the  directory where all Export Persona files are saved
-In the location bar click and make sure the full path is selected
-Now type CMD and Enter and the Command Promt will open on saved location
-Type dir /B
-With the mouse select all files and use CTRL+C to copy
-Leave the Command Promt open
-Open Excel and with CTRL+V paste all the file names starting at A2
-Rename cells A1>Old - B1>Change - C1>New 
-In cell C2 copy this Formula and drag it down: =CONCATENATE("ren ",CHAR(34),A2,CHAR(34)," ",CHAR(34),B2,CHAR(34))
-Make changes in column B
-Select all data from cell C2 to the end and use CTRL+C to copy
-Go back to the Command Promt and scroll down
-With CTRL+V paste all data into the Command Promt and press Enter

 

Link to comment
Share on other sites

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.