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

Implement code to look at #147 writing to Stdout #150

Merged
merged 2 commits into from
May 31, 2021
Merged

Implement code to look at #147 writing to Stdout #150

merged 2 commits into from
May 31, 2021

Conversation

tobya
Copy link
Owner

@tobya tobya commented Feb 20, 2021

This is experimental and related to #147

Seems to not really work well for binary formats so as long as being used with text seems ok.

@tobya
Copy link
Owner Author

tobya commented Feb 20, 2021

@Sandoun I did a very quick implementation. It seems to corrupt binary files (I'm sure there is a way to avoid this but I dont have thime now) - with text files its fine. Zip file below has binary if you wish to try it out.

At this point you also need to supply a -O outputfile still, but that can be chagned in the future. Perhaps if you provided more detail for your usecase.

use the --stdout parameter and you need to also use the -q parameter (which now works properly)

\docto.exe -wd -f "D:\Development\GitHub\DocTo\test\Inputfiles\pie3.doc" -o "D:\Development\GitHub\DocTo\test\GeneratedFiles\Pie35.txt" -T wdFormatText --Stdout -q

docto.zip

@Sandoun
Copy link

Sandoun commented Feb 23, 2021

Looking forward to test this, as soon as i continue my application, iam using it to convert a docx to PDF and rasterizing it to output a png file that the user can preview in the software, all that just because WPF has no native pdf support as far as i know. But no hustle at the moment caching the output works nicely too, would be a nice solution to just pipe it right into the rasterizer. 😄

@tobya
Copy link
Owner Author

tobya commented Feb 23, 2021 via email

@tobya tobya merged commit 99cdea2 into docto May 31, 2021
@tobya tobya deleted the stdoutstream branch May 31, 2021 06:50
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

Successfully merging this pull request may close these issues.

2 participants