hummusRecipe icon indicating copy to clipboard operation
hummusRecipe copied to clipboard

Text replace

Open rozxter1 opened this issue 3 years ago • 0 comments

Is there any working example for text replacing with current Hummus version used ?

I have tried for text replace https://github.com/galkahana/HummusJS/issues/71#issuecomment-394203268 - is not working with current HummusJs version (1.0.110) . Gives error : TypeError: pageObject.getDictionary(...).toJSObject(...).Contents.getObjectID is not a function Disabling that line, gives new error:

const readStream = copyingContext.getSourceDocumentParser().startReadingFromStream(textStream)
                                                                            ^
TypeError: Wrong arguments. provide a PDF stream input

All other examples around web whats based on that reply also is not working. Maybe someone can say what version was used for that example?

Thank you!

rozxter1 avatar Feb 15 '21 14:02 rozxter1