The default chromeRemoteDebuggingTimeout of 10s that is used to initialize the read timeout for CDT can be too low for large exports. If you increase the page ready timeout without increasing the chromeRemoteDebuggingTimeout you risk getting a timeout like this:
com.github.kklisura.cdt.services.exceptions.ChromeDevToolsInvocationException: Timeout expired while waiting for server response. at com.github.kklisura.cdt.services.impl.ChromeDevToolsServiceImpl.invoke(ChromeDevToolsServiceImpl.java:149) at com.github.kklisura.cdt.services.invocation.CommandInvocationHandler.invoke(CommandInvocationHandler.java:87) at jdk.proxy763/jdk.proxy763.$Proxy1028.printToPDF(Unknown Source) at org.xwiki.export.pdf.internal.chrome.ChromeTab.printToPDF(ChromeTab.java:155) at org.xwiki.export.pdf.browser.AbstractBrowserPDFPrinter.print(AbstractBrowserPDFPrinter.java:140) at org.xwiki.export.pdf.browser.AbstractBrowserPDFPrinter.print(AbstractBrowserPDFPrinter.java:59) at org.xwiki.export.pdf.internal.job.PDFExportJob.saveAsPDF(PDFExportJob.java:180) at org.xwiki.export.pdf.internal.job.PDFExportJob.exportAsPDF(PDFExportJob.java:104) at org.xwiki.export.pdf.internal.job.PDFExportJob.runInternal(PDFExportJob.java:81) at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:246) at org.xwiki.job.AbstractJob.run(AbstractJob.java:223) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:840)
I did a few tests, and it seems that chromeRemoteDebuggingTimeout should be at least 1/6 of the page ready timeout. E.g. if you increase the page ready timeout to 600s (10m) then you need to also increase chromeRemoteDebuggingTimeout to at least 100s (1m40s). Note that chromeRemoteDebuggingTimeout is currently not exposed in the PDF export administration section, so you need to set it from xwiki.properties:
export.pdf.chromeRemoteDebuggingTimeout=100
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.