create a form xobject, where you can implement the drawing, and get the resoruces dictionary to get gsName. see here for details - https://github.com/galkahana/HummusJS/wiki/Reusable-forms.
it's not written there but you can call myForm. getResourcesDictinary() to get the resources dictionary. then use myResDict. addExtGStateMapping() with the object id of the ExtGState that you created to get gsName
place the form in the page using cm and do [see the form usage example in the link above to see details]
function getPageDimensions(pdfWriter,pageIndex) { var pdfParser = pdfWriter.getModifiedFileParser(); var pageInfo = pdfParser.parsePage(pageIndex); var pageMediaBox = pageInfo.getMediaBox(); return { width:pageMediaBox[2]-pageMediaBox[0], height:pageMediaBox[3]-pageMediaBox[1] }; }
--
You received this message because you are subscribed to a topic in the Google Groups "PDFHummus interest group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pdfhummus-interest-group/dAY48PPx3dM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pdfhummus-interest...@googlegroups.com.
To post to this group, send email to pdfhummus-in...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pdfhummus-interest-group/80ec36c0-b9fe-4360-b58f-47c41953eb88%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.