Config file for use in Sitecore PDF Generation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<pipelines> | |
<getScreenShotForURL> | |
<!-- Disable security check --> | |
<processor type="Sitecore.ContentTesting.Pipelines.GetScreenShotForURL.CheckDisabler, Sitecore.ContentTesting"> | |
<patch:delete /> | |
</processor> | |
<!-- Disable setting of Experience Editor URL Parameters that cause a redirect to Sitecore login --> | |
<processor type="Sitecore.ContentTesting.Pipelines.GetScreenShotForURL.PopulateUrlParameters, Sitecore.ContentTesting"> | |
<patch:delete /> | |
</processor> | |
<!-- Patch in processor to add timeout to rendering of Screenshot to ensure everything loads properly --> | |
<processor type="MyLibrary.GetScreenShotForURL.AddTimeoutToScript, MyLibrary" | |
patch:after="*[@type='Sitecore.ContentTesting.Pipelines.GetScreenShotForURL.RenderScripts, Sitecore.ContentTesting']"> | |
<!-- Adjust to ensure images load properly --> | |
<Timeout>2000</Timeout> | |
</processor> | |
<!-- Patch in processor to generate PDF --> | |
<processor type="MyLibrary.GeneratePdf, MyLibrary" /> | |
</getScreenShotForURL> | |
</pipelines> | |
</sitecore> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment