Skip to content

Instantly share code, notes, and snippets.

Last active Oct 24, 2017
What would you like to do?
Config file for use in Sitecore PDF Generation
<?xml version="1.0" encoding="utf-8" ?>
<configuration xmlns:patch="">
<!-- Disable security check -->
<processor type="Sitecore.ContentTesting.Pipelines.GetScreenShotForURL.CheckDisabler, Sitecore.ContentTesting">
<patch:delete />
<!-- 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 />
<!-- 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 -->
<!-- Patch in processor to generate PDF -->
<processor type="MyLibrary.GeneratePdf, MyLibrary" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment