Libreoffice converting word to pdf issue - libreoffice

I am facing issue when converting microsoft word to PDF.
When I am converting word file to PDF with the help of libreoffice from command line command, there issue with the content in converted PDF file.
The background of the page in word resized and position of ellipse is changed.
Please find attached sample screen shot of word file(word.png) which I am trying to convert into PDF and PDF(pdf.png) in which I am facing issue.
Command which I am using,
libreoffice --headless --convert-to html WORDFILE.docx

Related

Is there any open source docx render available?

I was wondering if there are any open source docx renderer available. Given a OOXML snippet, is there some way to create an image of it. Say I have the OOXML for a paragraph in Microsoft word document, can I get the rendered paragraph as an image?

Jaspersoft 5.6.1 server Image - Lock position in Excel export

I've designed a Jasperreport using studio 5.6.1 which has got images. When I export to excel from Studio, it works fine. When I upload to the server and then export to excel (xls or xlsx) the Image postion moves down or up.This creates a extra row in excel and causing a alignment issue.
Is there a way to lock the Image postion or is there any property to set at element level? Please advise
Thanks
Sreeram
P.S I couldn't share this jrxml, as this is strict policy posting code on forums. Sorry!!!! :(

JasperReports Font adaption when using docx format printing (pdf using correct format)

I have a question regarding the font used in pdf and docx formats when printing from a JasperReports jrxml. I followed the instructions defined http://community.jaspersoft.com/wiki/custom-font-font-extension to get the JasperReports report to print Arial font in both pdf and docx prints. The pdfs happily accepted this and are printing Arial. But no matter what I try, the docx prints always show up as Sans Serif font.
I also already edited the JasperReports property lines as follows:
net.sf.jasperreports.default.font.name = ArialExtension (Name of my extension, as created by following the links documentation, jar file)
net.sf.jasperreports.default.pdf.font.name = ArialExtension
So, as I understand, JasperReports should always pick Arial as font which it doesn't. I frankly don't know what to do now. We need pdf and docx prints available for our customers and we need them in Arial font.
Can someone point me in another direction or tell me, what I am missing.
I fixed the problem! The solution is absolutely not obvious and might not work for everyone. But for me, the correct font was used in DOCX and PDF format when I named my font extension exactly like the font I want to use. So instead of ArialExtension, I called it Arial and my jar was called Arial.jar. Then the font in DOCX was correct, also in PDF.

Is it possible for a corrupted .doc file to be viewable as a .jpg of the first page of a Word document?

I received a document with a ".doc" file extension. It appeared as a random smattering of symbols/characters when opened in Word as is, or in a text editor as a .rtf or .txt file.
When the file extension was changed to ".jpg" and opened in an image viewer it appeared as a low resolution screen capture of the first page of a Word document. Is it possible for a corrupted Word document to exhibit this behavior? Or is this a clear example of a renamed image file being passed off as a corrupted .doc file?
Thanks in advance for your help.
EDIT: I have done some more investigation and Mac OS X Lion tells me that the file is actually a Windows bitmap image (.bmp).
It's likely that it has been renamed, Word interprets binary files as random characters and symbols. The only way I can think that a valid word document would exhibit this behavior is if a thumbnail is embedded in the Word document and the image viewer finds the headers and displays it. Either way it seems like you wont be able to use the contents.

Visio 2007 to Word 2000, images being changed during printing process

I am currently sorting out some screenshots for some software documentation. I take a screenshot, paste it into visio 2007, do some alterations and add shapes etc and then copy it into word 2000.
It all looks fine until I go to print. On the printout each screenshot image from visio has the bottom 1/4 of the image cropped and put at the top. I've tried copy paste and saving and inserting the file but nothing seems to work.
Any ideas?
Have you tried using "Paste Special" in Word and pasting it in as a Metafile or Enhanced Metafile? Or perhaps as a bitmap.
By default, Word will paste the Visio drawing in as an embedded OLE object, which you can double click to edit in Visio.
You lose that edit ability if you paste it as a different format, but it may give you different print results.