Node.JS 한글 변환 컨버터 실행시 에러 문의

Powershell Data: function Start
1|docuView | Powershell Errors: 위치 D:\kcuapps\HTML5_SERVER\pwshell\HwpToPdfScript.ps1:21 문자:9
1|docuView | + $hwp = New-Object -ComObject HWPFrame.HwpObject
1|docuView | + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1|docuView | + CategoryInfo : ResourceUnavailable: (:slight_smile: [New-Object], COMException
1|docuView | + FullyQualifiedErrorId : NoCOMClassIdentified,Microsoft.PowerShell.Commands.NewObjectCommand
1|docuView |
1|docuView | Powershell Data: ERROR01| Error creating PDF: null 값 식에서 메서드를 호출할 수 없습니다.
1|docuView | Powershell Data:
1|docuView | Powershell Errors: null 값 식에서 메서드를 호출할 수 없습니다.
1|docuView | 위치 D:\kcuapps\HTML5_SERVER\pwshell\HwpToPdfScript.ps1:57 문자:3
1|docuView | Powershell Data: End Of Program…
1|docuView | Powershell Errors: + $hwp.Quit()
1|docuView | + ~~~~~~~~~~~
1|docuView | + CategoryInfo : InvalidOperation: (:slight_smile: , RuntimeException
1|docuView | + FullyQualifiedErrorId : InvokeMethodOnNull
1|docuView |
1|docuView | Powershell Errors: "1"개의 인수가 있는 "ReleaseComObject"을(를) 호출하는 동안 예외가 발생했습니다. “개체 참조가 개체의 인스턴스로 설정되지 않았습니다.”
1|docuView | 위치 D:\kcuapps\HTML5_SERVER\pwshell\HwpToPdfScript.ps1:59 문자:3
1|docuView | Powershell Errors: + [System.Runtime.Interopservices.Marshal]::ReleaseComObject($h …
1|docuView | + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1|docuView | + CategoryInfo : NotSpecified: (:slight_smile: , MethodInvocationException
1|docuView | + FullyQualifiedErrorId : NullReferenceException
1|docuView |
1|docuView | Powershell Errors: Remove-Variable : 이름이 'hwp’인 변수를 찾을 수 없습니다.
1|docuView | 위치 D:\kcuapps\HTML5_SERVER\pwshell\HwpToPdfScript.ps1:60 문자:3
1|docuView | Powershell Errors: + Remove-Variable -Name hwp
1|docuView | + ~~~~~~~~~~~~~~~~~~~~~~~~~
1|docuView | + CategoryInfo : ObjectNotFound: (hwp:String) [Remove-Variable], ItemNotFoundException
1|docuView | + FullyQualifiedErrorId : VariableNotFound,Microsoft.PowerShell.Commands.RemoveVariableCommand

Node.js에서 파워쉘을 호출하여 PDF 저장하는 기능을 사용하고 있는데

한글 2018에서는 문제 없이 사용을 하다가 한글 2024로 업그레이드 하면서 위에 처럼

$hwp = New-Object -ComObject HWPFrame.HwpObject 오브젝트를 찾지 못하는 문제가 발생을 하고 있습니다.

파워셀 명령어를 직접 CMD 창에 입력을 하면 문제없이 PDF로 변환이 되는것을 확인 했구요

위에 처럼 문제가 나올 원인이나 해결방안을 알 수 있을까요?

안녕하세요

오토메이션 재등록을 해보시면 좋을 것 같습니다.
2024 한글설치경로\Hwp.exe /RegServer

감사합니다.

안녕하세요

한글 2024 버전 사용중입니다.

문의 글 처럼 해당 기능을 직접 명령 프롬프트를 통해 파워셀 32bit 버전으로 실행을 시키면

문제없이 실행이 되는것까지 확인을 했습니다.

현재 게시글만 봐서는 문제를 확인하기 힘들 것 같습니다.

특정 발생하는 조건이 있을까요?
서비스 로직을 알려주시면 좋을 것 같습니다.