Giter VIP home page Giter VIP logo

ooxml-rs's People

Contributors

hisphone avatar jqnatividad avatar zitsen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ooxml-rs's Issues

Make `Properties` field public

I currently use the crate to parse the docProps/core.xml. It would be great if the fields would be public so I can change them and write the changes back using a Writer :)

I'm open to implementing this if you're OK with it.

SpreadsheetDocument::open fails with non-UTF-8 file

Hi, thanks for this great crate :)
I'm trying to convert an xlsx doc to csv using xlsx2csv which uses this crate:

> xlsx2csv Report.xlsx
thread 'main' panicked at 'open xlsx file: IoError(Error { kind: InvalidData, message: "stream did not contain valid UTF-8" })', C:\Users\me\.cargo\registry\src\github.com-1ecc6299db9ec823\xlsx2csv-0.4.3\src\main.rs:238:69

It's this line which does let xlsx = ooxml::document::SpreadsheetDocument::open(opt.xlsx).expect("open xlsx file");:
https://github.com/zitsen/xlsx2csv.rs/blob/936878449a7d5e123f16e142bf086926dda7177b/src/main.rs#L238

Would it be possible to add support for non-UTF-8 encodings? (E.g. using encoding_rs_io::DecodeReaderBytes.)

Tracking issues and what is being worked on

Hey!

I am currently working on a tool that removes metadata from files and was looking for a crate for OOXML files. This one looks really promising! Do you have a development roadmap (through GitHub projects/issues) or something similar? Since I use the library I'd like to contribute back a little bit :)

Edit: The ECMA standard reference in the readme was really useful, as I only new about the ISO standard and those are too expensive haha :D

not found xl/sharedStrings.xml.

如果读取openpyxl生成的xlsx文件时会提示找不到xl/sharedStrings.xml ,
查阅资料后发现xl/sharedStrings.xml这个文件不是必须的 关于openpyxl的解答

是否应该考虑这个定义为

pub shared_strings: Option<SharedStringsPart>

let shared_strings = {
let package = package.borrow();
let part = package.get_part("xl/sharedStrings.xml").unwrap();
SharedStringsPart::from_xml_reader(part.as_part_bytes())
.expect("workbook shared strings error")
};

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.