IronPDF 에서 렌더링 시간 초과 문제 해결하기
IronPDF의 기본 렌더링 시간 제한은 60초 입니다. 렌더링 프로세스가 이 시간 내에 완료되지 않으면 타임아웃 런타임 예외가 발생합니다.
이미지 용량이 크거나 렌더링에 추가 시간이 필요한 입력의 경우 RenderDelay 시간을 조정하는 것이 좋습니다. 이를 통해 PDF가 생성되기 전에 에셋을 가상으로 완벽하게 렌더링할 수 있습니다. 이를 준수하지 않을 경우 PDF 문서에서 일부 내용이 누락되거나 PDF 파일이 비어 있는 상태가 될 수 있습니다.
기본 설정을 재정의하려면 ChromePdfRenderOptions 클래스에서 Timeout 기간을 조정하고 WaitFor 래퍼 객체를 통해 RenderDelay 메서드에서 지연 기간을 지정하세요.
예
// Create a new instance of ChromePdfRenderOptions
ChromePdfRenderOptions renderOptions = new ChromePdfRenderOptions();
// Increase the timeout for the rendering process to 120 seconds
renderOptions.Timeout = 120; // seconds
// Increase the delay before rendering to ensure all assets are fully loaded
renderOptions.WaitFor.RenderDelay(3000); // milliseconds (3 seconds)
// Create a new instance of ChromePdfRenderOptions
ChromePdfRenderOptions renderOptions = new ChromePdfRenderOptions();
// Increase the timeout for the rendering process to 120 seconds
renderOptions.Timeout = 120; // seconds
// Increase the delay before rendering to ensure all assets are fully loaded
renderOptions.WaitFor.RenderDelay(3000); // milliseconds (3 seconds)
' Create a new instance of ChromePdfRenderOptions
Dim renderOptions As New ChromePdfRenderOptions()
' Increase the timeout for the rendering process to 120 seconds
renderOptions.Timeout = 120 ' seconds
' Increase the delay before rendering to ensure all assets are fully loaded
renderOptions.WaitFor.RenderDelay(3000) ' milliseconds (3 seconds)
타임아웃과 렌더링 지연에 대한 자세한 내용은 아래 문서를 참조하세요.
타임아웃
렌더링 지연
엔지니어에게 서비스 요청을 하려면 다음 문서를 참조하십시오: 엔지니어링 요청 IronPDF .

