Can I use LibreCAD to print my DXF file to PDF using command line?
I am using Linux and here are some details: <q> Version: master SCM Revision: 2.0.8 Compiler: GNU GCC 5.3.0 Qt Version: 5.5.1 </q> It may be some command like: librecad demo.dxf --print demo.pdf If it's not possible in LibreCAD, then can you suggest me something else?
Mandeep Singh
|
There's a feature request of command line converter:
LibreCAD --convert foo.dxf foo.pdf LibreCAD --convert foo.dxf foo.svg LibreCAD --convert foo.dwg foo.dxf it might worth to implement them. Would you like to help? Another idea, implement a plugin. Need to read about LibreCAD plugin interface first.
|
On Fri, 18 Dec 2015 12:28:53 -0700 (MST)
"dxli [via LibreCAD]" <[hidden email]> wrote: > > If it's not possible in LibreCAD, then can you suggest me something else? > There's a feature request of command line converter: There are plenty online dxf 2 pdf wepages... Cheers, Ron. -- Always remember that you are unique. Just like everyone else. -- http://www.olgiati-in-paraguay.org -- |
In reply to this post by dxli
On Sat, Dec 19, 2015 at 12:58 AM, dxli [via LibreCAD]
<[hidden email]> wrote: > > There's a feature request of command line converter: > > LibreCAD --convert foo.dxf foo.pdf > LibreCAD --convert foo.dxf foo.svg > LibreCAD --convert foo.dwg foo.dxf > > it might worth to implement them. Would you like to help? Yes. How can I get started with that? > Another idea, implement a plugin. Need to read about LibreCAD plugin interface first. Can you point me to the relevant resources? -- Mandeep Singh http://mandeep7.wordpress.com https://github.com/mandeeps708 “To err is human, but to really foul up everything, you need root password.”
Mandeep Singh
|
Have a look at the class qc_applicationwindow, and slot slot functions for file open, file saving, and exporting.
May create a new slot to do the conversion and be called using cli parameters
|
On Sat, Dec 19, 2015 at 3:13 AM, dxli [via LibreCAD]
<[hidden email]> wrote: > Have a look at the class qc_applicationwindow, and slot slot functions for > file open, file saving, and exporting. > > May create a new slot to do the conversion and be called using cli > parameters I gave Kabeja a try. Can't we use it in LibreCAD as an extension? It's Apache licensed. http://kabeja.sourceforge.net/ https://github.com/fuzziness/kabeja -- Mandeep Singh http://mandeep7.wordpress.com https://github.com/mandeeps708 “To err is human, but to really foul up everything, you need root password.”
Mandeep Singh
|
Can you extend a C++ / Qt program with a Java library?
It seems nasty; and I think it would be overkill since we can already create PDF files. To be clear: are you talking about the OS command line or the command line inside of LibreCAD? Look at QC_ApplicationWindow::slotFilePrint It could use some cleanup, and could be split into more than one function. Also look at handleArgs in main.cpp |
On Sun, Dec 20, 2015 at 2:08 AM, ravas [via LibreCAD]
<[hidden email]> wrote: > Can you extend a C++ / Qt program with a Java library? > It seems nasty; and I think it would be overkill since we can already create > PDF files. > > To be clear: are you talking about the OS command line or the command line > inside of LibreCAD? OS command line. > Look at QC_ApplicationWindow::slotFilePrint > It could use some cleanup, and could be split into more than one function. > Also look at handleArgs in main.cpp Sorry, I've not undergone LC code as of now. As LibreCAD prints to PDF from GUI. I just want to do it from Command line. Thank you. -- Mandeep Singh http://mandeep7.wordpress.com https://github.com/mandeeps708 “To err is human, but to really foul up everything, you need root password.”
Mandeep Singh
|
In reply to this post by dxli
On Sat, Dec 19, 2015 at 12:58 AM, dxli [via LibreCAD]
<[hidden email]> wrote: > There's a feature request of command line converter: > > LibreCAD --convert foo.dxf foo.pdf > LibreCAD --convert foo.dxf foo.svg > LibreCAD --convert foo.dwg foo.dxf > > it might worth to implement them. Would you like to help? > > Another idea, implement a plugin. Need to read about LibreCAD plugin > interface first. Hi there! Is the project list for GSoC 2016 updated? Can we consider this as a standalone project to be in GSoC? -- Mandeep Singh http://mandeep7.wordpress.com https://github.com/mandeeps708 “To err is human, but to really foul up everything, you need root password.”
Mandeep Singh
|
Hi,
I feel this can be a good warm-up project, but doesn't seem to fit the length of gsoc. In addition, can we add basic piping to LibreCAD: librecad <<EOF line 0,0 10,10 circle 5,5 5 papersize letters export output.svg export output.pdf EOF Here we can have flexibility of what commands to support, to get a good project. What do you think? <quote author="mandeep7"> On Sat, Dec 19, 2015 at 12:58 AM, dxli [via LibreCAD] <[hidden email]> wrote: > There's a feature request of command line converter: > > LibreCAD --convert foo.dxf foo.pdf > LibreCAD --convert foo.dxf foo.svg > LibreCAD --convert foo.dwg foo.dxf > > it might worth to implement them. Would you like to help? > > Another idea, implement a plugin. Need to read about LibreCAD plugin > interface first. Hi there! Is the project list for GSoC 2016 updated? Can we consider this as a standalone project to be in GSoC? -- Mandeep Singh http://mandeep7.wordpress.com https://github.com/mandeeps708 “To err is human, but to really foul up everything, you need root password.” |
In reply to this post by mandeep7
As rolgiati pointed out, there are a lot of free tools already available to batch convert dxf to pdf.
Let's avoid reinventing another wheel. A GSoC project would preferably add something that is frequently requested: - scripting - properties dockwidget - grouping of layers - show the entities in each layer (tree view) We aren't lacking in feature requests. https://sourceforge.net/p/librecad/feature-requests/?source=navbar https://github.com/LibreCAD/LibreCAD/labels/request |
In reply to this post by rolgiati
On Sat, Dec 19, 2015 at 1:27 AM, rolgiati [via LibreCAD]
<[hidden email]> wrote: > "dxli [via LibreCAD]" <[hidden email]> wrote: > >> > If it's not possible in LibreCAD, then can you suggest me something >> > else? > >> There's a feature request of command line converter: > > There are plenty online dxf 2 pdf wepages... I could not find any which is FOSS. If I am missing any, please point out. -- H.S.Rai
--
H.S.Rai |
Administrator
|
We have a simple version that can generate PDF in LibreCAD 3, it's still work in progress though. Ries
|
Free forum by Nabble | Edit this page |