This is handled in GN4 by the series of group level parameters such as archiveVersions, archiveImgVariantName and others are listed in Parameters for archiving:
For more details, see the Configuring Archiving chapter and its topics below:
Import required configuration files
Create archiving-related workstates
Skip archiving content in specific folders
Configure print queue for PDF creation
Configure Back4 queue to generate PDF
Create printing script to tie PDF creation to final output
Example of automated archiving
Automatically create an archive variant when the page is released
Supported object types and relationships
Object naming and destination folders
'Self' URLs and extra information
Where are archiving configuration parts?
Converting already archived articles from XML to HTML