is there a way to rebuild fabric content in pdfkit?

i was trying to generate pdf in server side via nodejs and using PDFKit first in the client i use fabricjs to create content then i upload that canvas json data to server side, and then i want generate pdf by those json data. at first,i direct put all thing back into a node-canvas and then create a png and put it into a pdf,however,in that case,the pdf file can not editable,also,the quality of image is very bad,even all the content is svg path. so i was wonder as if there is a way to translate the json data create by fabric into the pdf commands,and rebuild all the content by pdfkit?