This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Printing source code to PDF

Hi all,

I am trying to print my source code files to pdf with the line numbers, but with little success.

Currently I copy paste the C code into a LibreOffice Writer document and then print to PDF, however this does not preserve the line numbers.  I have carried out a little research and doubled checked the line numbers option etc, and this is all visible when editing.

I have now tried to print the source code directly from CCS v5.4, and using PDFCreator, but I get a blank document?

Any help would be appreciated,

Best regards,

Ant