<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><language>en</language><title>Blog posts by Import Assets in Bulk and Create pages</title> <link>https://world.optimizely.com/blogs/import-assets-in-bulk-and-create-pages/</link><description></description><ttl>60</ttl><generator>Optimizely World</generator><item> <title>Import assets in bulk and create respective pages in Episerver CMS</title>            <link>https://world.optimizely.com/blogs/import-assets-in-bulk-and-create-pages/dates/2020/5/import-assets-in-bulk-and-create-respective-pages-in-episerver-cms/</link>            <description>&lt;p&gt;Hello Guys,&lt;/p&gt;
&lt;p&gt;Recently I came across one of the requirement to import PDF documents from external drive and create respective publication pages in Episerver. I have divided this requirement into below tasks:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Import all PDF&#39;s into Episerver in same structure as it is in external drive&lt;/li&gt;
&lt;li&gt;Create episerver page for each PDF in same structure&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;To start with I have created two properties in setting page 1. Reference folder in Asset under which all PDF&#39;s will get imported and 2. Container page under which all publication pages will get created.&lt;/p&gt;
&lt;p&gt;After creating properties, I have created admin tool to Import PDF. Below is logic to add in import service.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/link/512daa89d78b4bb3b04cd03110f45de1.aspx&quot; width=&quot;638&quot; height=&quot;368&quot; /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/link/c069a381be854b66910bf7f294018c2e.aspx&quot; width=&quot;646&quot; height=&quot;351&quot; /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/link/4d442a1c40e646e2a03d68d6c07e8922.aspx&quot; width=&quot;646&quot; height=&quot;386&quot; /&gt;&lt;/p&gt;
&lt;p&gt;I still have to extend this feature to copy content from PDF to Publication pages. I will be using iText7 library for extension. Below is sample code for reading PDF&#39;s.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/link/48023c3086ab4c65852945c753e7edeb.aspx&quot; width=&quot;377&quot; height=&quot;164&quot; /&gt;&lt;/p&gt;
&lt;p&gt;I have used below article as inspiration!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://blog.nicolaayan.com/2017/03/episerver-how-to-upload-media-assets-in-bulk/&quot;&gt;https://blog.nicolaayan.com/2017/03/episerver-how-to-upload-media-assets-in-bulk/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This functionality is very useful while migration of data. We can also extend this feature for various types of documents like PDF, Doc etc.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;</description>            <guid>https://world.optimizely.com/blogs/import-assets-in-bulk-and-create-pages/dates/2020/5/import-assets-in-bulk-and-create-respective-pages-in-episerver-cms/</guid>            <pubDate>Tue, 26 May 2020 07:31:04 GMT</pubDate>           <category>Blog post</category></item></channel>
</rss>