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

I can't get the examples to compile as I get this error.... #2

Closed
chrisriner opened this issue Feb 16, 2021 · 3 comments
Closed

I can't get the examples to compile as I get this error.... #2

chrisriner opened this issue Feb 16, 2021 · 3 comments

Comments

@chrisriner
Copy link

/Users/christopherriner/Downloads/DocX-master/DocX/NSAttributedString+DocX.swift:26:35: Type 'Bundle' has no member 'module'

@shinjukunian
Copy link
Owner

The lates commit should have resolved this - sorry for not getting to this issue earlier.

@chrisriner
Copy link
Author

Thanks very much. I tried it and it works now. I was wondering if I could get your opinion on what I am trying to do. I was looking for a way to generate a word doc in code. I have to let a user enter lots and lots of data and then I store it in core data and then they want to tap a button and then my app should take all of that data plus some images and generate a word doc that they can then export from the app to one drive and edit it more on a laptop. I am trying to see if this library would help me in creating a word doc for them in code using the data they have entered. They do not need to edit anything directly in the app just enter the data and then the app generates word doc. The word doc again would have text and pictures and tables and will be very large. Do you think you library would be helpful in doing that?

@shinjukunian
Copy link
Owner

Hi @chrisriner,

I'm glad everything is working now - since migrating to SPM the framework targets haven't been used in my projects.
DocX is designed around NSAttributedString and is this limited by the functionality of this API - hence no tables, pagination etc. Images are in principle supported by NSAttributedString (through NSTextAttachement) but I have not implemented this since images (and their placement etc.) are pretty clunky in both TextKit and .docx

Cheers

Morten

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

2 participants