Giter Club home page Giter Club logo

vsword's Introduction

vsword's People

Contributors

vench avatar mpuch avatar

Stargazers

Marco Santantonio avatar William J H avatar Matej avatar Denis avatar Bassaoud avatar Fedy avatar Resurser avatar  avatar Evgenii Orlov avatar Chuano avatar dwi lanang avatar peiman F avatar webathlet avatar Caumaker avatar QuantaTec avatar Property Hive avatar Dastiw1 avatar Andrei avatar yongke avatar Jonatan Moleiro avatar  avatar Sergey Tretyak avatar

Watchers

James Cloos avatar Kay Strobach avatar peiman F avatar  avatar Suresh CJ avatar

vsword's Issues

Can't make underline appear in text

I've tried using both the html parser with tags, and the addTextStyle(new \UnderLineStyleNode()) method directly with the nodes.

Am I missing something? :-(

Can't add "&" symbol in my text htmlparser.php

Hi I am creating a word file through vsword examples/htmlparser.php. My html content having text which includes "&" symbol. It is like $html = '

Terms & Conditions

'. When I am running it the created document only adding "Terms" text. Please answer me how i solve it?

PageBreak not working

I tried the example of pagebreak and its not breaking page from Header 1 to Header 2

Using the tinymce example many items not working, fix?

Wondering if the tinymce example is broken?

As underline, strikethrough and italics don't seem to convert, just shows up as regular text in docx from the tinymce html to docx example.

Also bulleted list shows up as a numbered list in a docx instead of a bulleted list when converted using the software.

tinymce example/docx doesn't seem to be working right. Or the conversion isn't working,

Thanks

Library requirements ?

Thank for library , but i can't run it. I think my php not enable some extension , what library requirements ?

Line breaks

Why does this code:

Hello World Bold
"; $parser->parse($html); $doc->saveAs('results/example_vs.docx'); ?>

produce no bold and several line breaks like this?:

Hello World,

Hello World Bold

Or how do I inline bold text?
Bob

EmptyCompositeNodeNodeAddeded.php does not exist

Hi,

source file for EmptyCompositeNodeNodeAddeded (referenced by ) not exists in vsword/parser/addeded.

I use

$doc = new VsWord();
$parser = new HtmlParser($doc);
$parser->parse($htmlContent);

Because I'm pretty new with your framework, I don't know, if I made an error before, may be in the HTML source. But there should be an error output which explains the reason for presence of an unhandled class (EmptyCompositeNode?) and leads to a solution - right?

Thanks in advance for your effort.

Regards Knut

Anchor elements aren't being parsed correctly.

Hi

We're finding that anchor elements aren't being being included in the docx files that are being produced.

Any advice appreciated.

Here's an example of some markup that failed:

<div>
<p><a href="http://google.com">Lorem ipsum dolor sit amet,</a> consectetur adipiscing elit. Aenean diam nibh, scelerisque eu elit at, euismod tempor ligula. Donec eget neque sed velit scelerisque scelerisque at ut ex. Cras tempor mi id efficitur viverra. Proin vitae sem et velit tempor hendrerit. Nam eget augue a turpis cursus venenatis eu a dui. Vivamus et mauris ultrices orci congue egestas. Vivamus vulputate turpis ornare est condimentum, sit amet vehicula urna facilisis. Duis lobortis egestas leo, at bibendum purus efficitur vitae. Praesent lacinia maximus suscipit. Nunc et purus ipsum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Nam dui erat, molestie ac vulputate quis, viverra non turpis. In volutpat consequat ligula. Suspendisse laoreet eleifend velit, at dictum arcu egestas vel.</p>
<p>Vestibulum placerat suscipit libero eget mollis. Aliquam feugiat faucibus urna ut dapibus. Integer efficitur condimentum odio vitae tristique. Curabitur ornare lectus eget enim ullamcorper tincidunt. Aenean convallis eros convallis augue ullamcorper aliquam. Mauris leo tortor, semper nec augue sed, posuere hendrerit mi. In placerat venenatis velit, sed imperdiet leo commodo ut. Fusce semper massa in sagittis semper. Sed fermentum posuere nulla sit amet commodo. Nam faucibus non magna sit amet congue. Etiam eu laoreet metus. Pellentesque nisl lorem, egestas vitae mi vel, elementum ultricies nibh. Morbi lorem lacus, vehicula sollicitudin viverra a, lobortis quis est. Curabitur sit amet sagittis dui, eget accumsan lacus.</p>  
<ul>
<li>Sed iaculis arcu ut volutpat sodales. Vivamus diam tortor, laoreet sed gravida vel, porttitor non diam. Praesent volutpat posuere neque, a accumsan nibh varius sit amet. Fusce vehicula dignissim lobortis. Mauris semper ac mauris ac commodo. <a href="http://google.com">Pellentesque ultrices mollis massa et hendrerit. </a></li> 	
<li>In porttitor velit quis mattis iaculis. Donec ac cursus leo, sit amet maximus justo. Cras dictum tortor turpis, vel convallis nunc suscipit eu.</li> 
</ul>  
<p>Vestibulum suscipit massa suscipit quam consectetur tempor. Fusce facilisis ut odio eget porta. Praesent non eros accumsan, rhoncus nulla quis, ornare libero. Duis in interdum ante. Aenean eleifend ut dolor in ullamcorper. Sed vestibulum, ex eu maximus posuere, nulla sapien semper tortor, et vestibulum tortor urna in tellus. Sed sed sapien venenatis, gravida mauris sit amet, elementum massa. Mauris ut augue ut dui venenatis malesuada ut ac risus. Duis finibus auctor porta. Donec ut massa dolor. Integer placerat dui in nunc pharetra maximus. Nulla rhoncus ipsum mi, vitae mattis erat scelerisque non. Nulla porttitor gravida dui, ut tempor leo.</p>
</div>

Thanks so much for your swift responses.

Really appreciated

Luke

rtl text

Hi
the tinymce example dont support rtl text
how can i fix it?

Docx File open get error

Its Very Nice lib ....Thanks to doing a good job. I am try to create word file in doc& docx format but it gives error like
1
2
3

Error parsing P elements within a UL structure

Hi

Thanks for a great library. I'm finding the library really useful, however I've noticed MS Word can't open some of the files that our application is exporting.

I'm using the parse method to convert HTML snippets into docx files.

If the following element structure exists, the file is created correctly but it can't be opened by MS Word.

<ul>
	<li>
	<p>Text</p>

	<ul>
		<li>List item 1</li>
		<li>List item 2</li>
	</ul>
	</li>
</ul>

Thanks

Luke

No whitespaces on google docs

I just found out from a customer that when he receives the text in a docx document I generate he's able to view the document properly formatted in WordPad and Word 2016 but not in google docs.

It basically loses all whitespaces added to the file.

Is there any way to enforce the whitespace?

Notice when parsing HTML

Hi

I'm receiving this notice when parsing HTML:

Notice: Use of undefined constant ENT_XML1 - assumed 'ENT_XML1' in HTMLLoader->createStringNode() (line 114 of vsword/vsword/parser/HTMLLoader.php).

Happy to supply more information if required.

Thanks

Luke

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.