Skip to content

Commit c519a6b

Browse files
set-softmarekr
authored andcommitted
Fix kicad-cli pcb export pdf --mode-multipage
So it generates one PDF instead of multiple PDFs
1 parent 8945bcc commit c519a6b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

kicad/cli/command_pcb_export_pdf.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,10 @@ int CLI::PCB_EXPORT_PDF_COMMAND::doPerform( KIWAY& aKiway )
174174
pdfJob->m_argCommonLayers = From_UTF8( m_argParser.get<std::string>( ARG_COMMON_LAYERS ).c_str() );
175175

176176
if( argModeMulti )
177+
{
177178
pdfJob->m_pdfGenMode = JOB_EXPORT_PCB_PDF::GEN_MODE::ONE_PAGE_PER_LAYER_ONE_FILE;
179+
pdfJob->m_pdfSingle = true;
180+
}
178181
else if( argModeSeparate )
179182
pdfJob->m_pdfGenMode = JOB_EXPORT_PCB_PDF::GEN_MODE::ALL_LAYERS_SEPARATE_FILE;
180183
else if( argModeSingle )

0 commit comments

Comments
 (0)