Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not add content to docx files(crashed) #91

Open
AeYeung opened this issue Sep 6, 2024 · 1 comment
Open

Can not add content to docx files(crashed) #91

AeYeung opened this issue Sep 6, 2024 · 1 comment

Comments

@AeYeung
Copy link

AeYeung commented Sep 6, 2024

#include <duckx.hpp>
#include
using namespace std;

int main() {
duckx::Document doc("/home/hemingyang/Desktop/duckx/DuckX/samples/my_test.docx");

doc.open();


duckx::Paragraph &paragraphs = doc.paragraphs();


paragraphs.insert_paragraph_after("This is a new line added to the document.", duckx::formatting_flag());


doc.save();
std::cout << "Text added successfully!" << std::endl;

return 0;

}
double free or corruption (!prev)

Pls tell me how to add content in docx files

@AeYeung
Copy link
Author

AeYeung commented Sep 6, 2024

double free or corruption (!prev)
how to debug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant