안녕하세요 팀,
시도할 때 아래 오류가 발생합니다. save URL에서 생성된 pdf. URL에서 pdf를 생성하기 위해 node js를 사용하고 있습니다. save 내 로컬 드라이브로 보내줘. 참고로 아래 코드를 첨부했습니다. 누군가 여기 좀 도와주실 수 있나요? 에프
Error:
[Error: ENOENT: no such file or directory, open '/Users/shankeytyagi/vs-studio-workspacea/result.pdf'] {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/Users/shankeytyagi/vs-studio-workspacea/result.pdf'
}
Code:
시도 {
String dest="C:\\pdf\\test.pdf";
GrabzItClient 클라이언트 = new GrabzItClient(appKey, appSecret);
PDFOptions 옵션 = 새로운 PDFOptions();
options.setBrowserWidth(1500);
options.setHideElement(".ArevicoModal-bg,.ArevicoModal");
options.setDelay(30000);
고객.URLToPDF(URL, 옵션);
Assert.assertNotNull("다음을 사용하여 팝업 숨기기를 수행하지 못했습니다. URLToPDF 방법", 클라이언트.SaveTo(목적지));
} catch (예외예외) {
// Assert.fail("PDF 스크린샷을 찍는 동안 오류가 발생했습니다: " +
// ex.getMessage());
System.out.println("오류 메시지:: " + ex.getStackTrace() + "\n" + ex.getMessage());
}
건배
샹키