docx icon indicating copy to clipboard operation
docx copied to clipboard

Simple Google Go (Golang) library for replacing text in Microsoft Word (.docx) file

Results 13 docx issues
Sort by recently updated
recently updated
newest added

when add \n in text and then export to docx (\n = pic 1) i'm use paragraph mark for see shift+enter or enter but i need a enter not shift+enter...

Fix issue #25 . {{HardLineBreaks}} will be replaced by , besides , it's hard line breaks. ``` docx1.Replace("document", "line1{{HardLineBreaks}}line2", -1) ``` And I also update ``` const NEWLINE = ""...

Hi Ijust wanted to use your library, but noticed, after I replaced the variables/placeholders I can not export it to PDF. If this package does not provide this, is there...

adding ReplaceRawByCallback for providing freedom for users to integrate with other docx parsing library on top of this library

changed 'for replacing text' to 'for replacing text and images' in the title

I needed to replace the signature image on the document. And relying on the image index turned out to be extremely unreliable. They can switch places. So I did getting...

If you try to replace an image, it is placed in the same place, with the same width and the same height as the original in the document. The problem...

package main import ( "fmt" "github.com/nguyenthenguyen/docx" ) func main() { // Read from docx file r, err := docx.ReadDocxFile("./a.docx") // Or read from memory // r, err := docx.ReadDocxFromMemory(data io.ReaderAt,...

When replacing strings, passing keys overrides the problem, for example cover and str_cover. The string to be searched is cover to replace aaabbbcccc , and there is also another string...