I have to convert pcl file into a pdf file using Node JS but i don't know how to do that any help will be great.
I just installed ghostscript via home brew then run the command gs -sDEVICE=pdfwrite -o output.pdf input.pcl but file is converted as a blank pdf and i got few errors as follows:
Error: /undefined in E3F1241s1754T75Rl0E6W
Operand stack:
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1990 1 3 %oparray_pop 1989 1 3 %oparray_pop 1977 1 3 %oparray_pop 1833 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
Dictionary stack:
--dict:765/1123(ro)(G)-- --dict:0/20(G)-- --dict:75/200(L)--
Current allocation mode is local
Current file position is 37
GPL Ghostscript 10.01.2: Unrecoverable error, exit code 1
What is the best approach converting pcl file into a pdf file using node js without using third party API's if possible?
I tried the use ghostscript 10.01.2