<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to pdf documentation for libraries</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2d43b09f6a/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2d43b09f6a/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/2d43b09f6a/</id><updated>2020-02-27T14:52:12.993000Z</updated><subtitle>Recent posts to pdf documentation for libraries</subtitle><entry><title>pdf documentation for libraries</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2d43b09f6a/?limit=25#7d5a" rel="alternate"/><published>2020-02-27T14:52:12.993000Z</published><updated>2020-02-27T14:52:12.993000Z</updated><author><name>phongpham</name><uri>https://forge.codesys.com/u/phongpham/</uri></author><id>https://forge.codesys.comd441c9b5a040521b62d289479241b1bf947824ed</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'm running into the same error &lt;br/&gt;
Could not import extension sphinx.ext.codesys (exception: No module named codesys)&lt;br/&gt;
could anyone give us a hint?&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>pdf documentation for libraries</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2d43b09f6a/?limit=25#45f9" rel="alternate"/><published>2020-02-27T14:52:11.416000Z</published><updated>2020-02-27T14:52:11.416000Z</updated><author><name>esskaey</name><uri>https://forge.codesys.com/u/esskaey/</uri></author><id>https://forge.codesys.com71bb23a6ddd298b3e5ecc1def2a42c1e5345f1cd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello Martin,&lt;/p&gt;
&lt;p&gt;I have gotten to the step where, the source and frame are merged and the libdoc 3.5.11.0 installed in a virtualenv. When I try to run the sphinx command to generate a pdf, I get the error &lt;/p&gt;
&lt;p&gt;"Could not import extension sphinx.ext.codesys ( no module named codesys)"&lt;/p&gt;
&lt;p&gt;What am I missing here. Also if I try to run pdflatex on the lib.tex, I get a missing cmap.sty error and I am not able to proceed further.&lt;/p&gt;
&lt;p&gt;Thanks in advance &lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;Shivaram&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>pdf documentation for libraries</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2d43b09f6a/?limit=25#b153" rel="alternate"/><published>2020-02-27T14:52:10.865000Z</published><updated>2020-02-27T14:52:10.865000Z</updated><author><name>learnetk</name><uri>https://forge.codesys.com/u/learnetk/</uri></author><id>https://forge.codesys.com18f8dc75d3aead67c35b7ba8eba4c8b9e8d9e1f3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Martin,&lt;br/&gt;
Thank you ..!!&lt;br/&gt;
That works, as described in the section "PDF Output Format". But how could i add multiple .tex files to make a single document.&lt;/p&gt;
&lt;p&gt;Thanks and warm regards.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>pdf documentation for libraries</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2d43b09f6a/?limit=25#d161" rel="alternate"/><published>2020-02-27T14:52:10.294000Z</published><updated>2020-02-27T14:52:10.294000Z</updated><author><name>mkeller</name><uri>https://forge.codesys.com/u/mkeller/</uri></author><id>https://forge.codesys.combc14485f34ab4af72b17298fec42d037f9f5e8d3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi learnetk.&lt;/p&gt;
&lt;p&gt;Why didn't you use our tool to generate the PDF? For that you have to transform the source to LaTeX which can be converted to PDF. See "PDF Output Format" in the online help.&lt;/p&gt;
&lt;p&gt;Maybe you should use a newer version of CODESYS to create your documentation because there were some bugs in the early versions of the tool.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Martin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>pdf documentation for libraries</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2d43b09f6a/?limit=25#a294" rel="alternate"/><published>2020-02-27T14:52:08.685000Z</published><updated>2020-02-27T14:52:08.685000Z</updated><author><name>learnetk</name><uri>https://forge.codesys.com/u/learnetk/</uri></author><id>https://forge.codesys.come8c9a6aeb6e364980d457c48e2d4b182cde1796c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Martin,&lt;/p&gt;
&lt;p&gt;I am using Codesys V3.5 SP6 Patch 3&lt;/p&gt;
&lt;p&gt;Firstly, i installed Python 2.7.12 along with the packages Sphinx and rst2pdf.&lt;/p&gt;
&lt;p&gt;Then started with the Libdoc scripts (as in Script your Documentation) and followed the steps as under :&lt;/p&gt;
&lt;p&gt;Step 1 : Libdoc export c:\project\lib\sysfile.library c:\project\lib\sysfile.json&lt;br/&gt;
Step 2 : Libdoc generate c:\project\lib\sysfile.json c:\project\lib\Frame&lt;br/&gt;
Step 3 : Libdoc merge c:\project\lib\sysfile.json c:\project\lib\Frame c:\project\lib\Source&lt;/p&gt;
&lt;p&gt;Step 4 : copy the files 'conf.py' to the Source folder, remove the html part and reference to libdoc_builder&lt;br/&gt;
Step 5 : Add in Conf.py the following changes&lt;br/&gt;
extensions = &lt;span&gt;['sphinx.ext.todo', 'rst2pdf.pdfbuilder']&lt;/span&gt;&lt;br/&gt;
pdf_documents = &lt;span&gt;[('index', u'rst2pdf', u'SysFileDoc', u'Test'),]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Step 6 : sphinx-build -b pdf c:\project\lib\source c:\project\lib\build&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;sphinx-build -b pdf c:\project\lib\source c:\project\lib\build&lt;br/&gt;
Running Sphinx v1.4.9&lt;br/&gt;
loading pickled environment... failed: source directory has changed&lt;br/&gt;
building &lt;span&gt;[mo]&lt;/span&gt;: targets for 0 po files that are out of date&lt;br/&gt;
building &lt;span&gt;[pdf]&lt;/span&gt;: targets for 27 source files that are out of date&lt;br/&gt;
updating environment: 27 added, 0 changed, 0 removed&lt;br/&gt;
reading sources... &lt;span&gt;[100%]&lt;/span&gt; libraries&lt;br/&gt;
looking for now-outdated files... none found&lt;br/&gt;
pickling environment... done&lt;br/&gt;
checking consistency... done&lt;br/&gt;
processing rst2pdf... index ACCESS_MODE SYS_FILETIME SYS_FILE_STATUS SysFileClose SysFileCopy SysFileDelete SysFileDeleteByHandle SysFileEOF SysFileFlush SysFileGetName SysFileGetName2 SysFileGetPath&lt;br/&gt;
SysFileGetPos SysFileGetSize SysFileGetSizeByHandle SysFileGetStatus SysFileGetStatus2 SysFileGetTime SysFileOpen SysFileRead SysFileRename SysFileSetPos SysFileTruncate SysFileWrite info libraries &lt;span&gt;[E&lt;br/&gt;
RROR]&lt;/span&gt; pdfbuilder.py:130 too many values to unpack&lt;br/&gt;
Traceback (most recent call last):&lt;br/&gt;
  File "c:\python27\lib\site-packages\rst2pdf\pdfbuilder.py", line 122, in write&lt;br/&gt;
    appendices=opts.get('pdf_appendices', self.config.pdf_appendices) or [])&lt;br/&gt;
  File "c:\python27\lib\site-packages\rst2pdf\pdfbuilder.py", line 209, in assemble_doctree&lt;br/&gt;
    index_nodes=genindex_nodes(genindex)&lt;br/&gt;
  File "c:\python27\lib\site-packages\rst2pdf\pdfbuilder.py", line 385, in genindex_nodes&lt;br/&gt;
    for entryname, (links, subitems) in entries:&lt;br/&gt;
ValueError: too many values to unpack&lt;br/&gt;
FAILED&lt;br/&gt;
build succeeded.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Thanks and warm regards&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>pdf documentation for libraries</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2d43b09f6a/?limit=25#3e72" rel="alternate"/><published>2020-02-27T14:52:08.066000Z</published><updated>2020-02-27T14:52:08.066000Z</updated><author><name>mkeller</name><uri>https://forge.codesys.com/u/mkeller/</uri></author><id>https://forge.codesys.com590fd6266b8d99df784d6a7068a2d7e905590eae</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi learnetk.&lt;/p&gt;
&lt;p&gt;From the subject I think you want to generate documentation for a library but from the text I get the impression you want to generate documentation for your scripts. Which is the correct one?&lt;/p&gt;
&lt;p&gt;If you want to generate documentation for a library did you use CODESYS Libdoc? See "Library Development Summary" and "Script your Documentation" in the online help.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Martin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>pdf documentation for libraries</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/2d43b09f6a/?limit=25#2e89" rel="alternate"/><published>2020-02-27T14:52:07.370000Z</published><updated>2020-02-27T14:52:07.370000Z</updated><author><name>learnetk</name><uri>https://forge.codesys.com/u/learnetk/</uri></author><id>https://forge.codesys.com15e899ed2312348c577e21d664d2c1ae21ad4959</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo Everyone&lt;/p&gt;
&lt;p&gt;I have been trying to script my documentation and get a pdf output for the same.&lt;br/&gt;
using Sphix and rst2pdf. The try the command &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;sphinx-build -b pdf C:\Project\SysFile\Source C:\Project\SysFile\Build&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;and i get errors &lt;/p&gt;
&lt;p&gt;libraries &lt;span&gt;[ERROR]&lt;/span&gt; pdfbuilder.py:130 too many values to unpack&lt;br/&gt;
..&lt;br/&gt;
ValueError: too many values to unpack&lt;br/&gt;
FAILED&lt;br/&gt;
build succeeded.&lt;/p&gt;
&lt;p&gt;has anyone been successful using this..!!&lt;/p&gt;
&lt;p&gt;I am using Codesys V3.6.&lt;br/&gt;
Thanks and warm regards&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>