Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QM Help pdf. Convert chm to pdf.
#1
QM Help file in pdf format.
If you need QM Help pdf for other QM version, you can create it, see next post.


Attached Files
.zip   QM Help 2-4-8.zip (Size: 2.5 MB / Downloads: 12,095)
#2
Macro to convert chm to pdf.

Uses wkhtmltopdf. It is in the zip file too.

Unzip to the QM folder. It creates folder "pdf", containing file "Create QM Help pdf.qml" and folder "wkhtmltopdf". Run the file, click Import. Run the imported macro.

2019-03-11 - fixed bug: no topic numbers in the table of contents.


Attached Files
.zip   pdf.zip (Size: 8.12 MB / Downloads: 1,051)
#3
Hello, I have converted CHM to a PDF file, then I want to print it, but the CONTENTS of the PDF file does not display the page number. Can you guide me how to generate the page number? thank you very much Smile


Attached Files Image(s)
   
#4
In the macro there are two cl=F"''{wkhtmltopdfDir}... lines. The first is disabled. Enable the first and disable the second.
#5
Thank you for your reminder Smile

I found a problem. The page number hint in the entire document is wrong. This function is very useful for printing documents. How to fix it? Huh  I haven't printed the document yet, because the prompt page number of the link is wrong.  Thanks in advance   Smile


Attached Files Image(s)
   
#6
If CONTENTS can keep indented, it's even better.

Can I convert to Docx format? I want to translate it, Docx format editing is more convenient  Smile


Attached Files Image(s)
   
#7
Also remove flag 1 in these lines.

QMPDF_GetHtmlFiles htmlDir cl aFiles
QMPDF_ProcessFiles htmlDir aFiles

Both formats are not perfect. I cannot make better.

The "Create QM Help pdf" macro temporarily converts the .chm file into many .htm files. You can try to find some tool that converts html to docx. I cannot help.
#8
After deleting parameter 1, the page number cannot be generated next to the link

I tried a lot of software and couldn’t display the page number next to the link.
#9
Flag 1 generates topic numbers. Cannot generate page numbers.
#10
To add topic numbers in the table of contents, in function QMPDF_GetHtmlFiles replace

toc.replacerx(F"<LI><a href=''{_s}''>" F"$0 {i+1}. " 1)

with

toc.replacerx(F"<LI><a href=''\Q{_s}\E#top''>" F"$0 {i+1}. " 1)

Actually it is a bug fix.

And restore macro "Create QM Help pdf".
I will update the downloadable files soon.
#11
Ok, thanks, I am waiting for the update. Heart

In front of each title, adding a number is great, it is very convenient to find, please see the picture below


Attached Files Image(s)
   
#12
Updated the pdf in the first post and the macro/functions in the second post.
Now the pdf contents contains topic numbers. Links and pages too.
Cannot add page numbers; instead use topic numbers to navigate.
#13
Hello, I have a new feature request. In fact, this feature exists in many software.

When I press F1, I can use the browser to open the online help page of the function where the cursor is located. Many browsers have translation plugins. I can view the translated documents directly in the browser, which is not good for English reading. For people, it’s too convenient.

If possible, I recommend being able to implement it because QM has an online help page

add an option to the Tools → option, use online help, or local help.  Idea

Thank you very much, my English is not very good, I really need this feature. Smile
#14
I need to change the font size of all the text in the document, the magnification is 120%, I set the parameter double zoom=1.5 but did not achieve the desired effect, can you guide me, which parameter to change? thank you very much!
#15
zoom is a command line parameter of wkhtmltopdf.exe. With QM Help it works.


Forum Jump:


Users browsing this thread: 1 Guest(s)