Win32 |
Author |
Message |
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3247 Location: Europe
|
|
Back to top |
|
 |
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3247 Location: Europe
|
Posted: Sat Jul 20, 2019 5:41 pm Post subject: |
|
|
so - How to tell when Microsoft Print to PDF printer driver is finished?
"I needed a cheap way for my application to create a PDF file. So I'm using
the print functions of the Windows API directly (CreateDC(), StartDoc(),
StartPage(), EndPage(), EndDoc(), etc.), and selecting the Microsoft Print
to PDF printer driver." |
|
Back to top |
|
 |
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3247 Location: Europe
|
Posted: Sun May 22, 2022 8:50 am Post subject: |
|
|
git - libHaru
"Haru is a free, cross platform, open-sourced software library for generating
PDF. It supports the following features.
1. Generating PDF files with lines, text, images.
2. Outline, text annotation, link annotation.
3. Compressing document with deflate-decode.
4. Embedding PNG, Jpeg images.
5. Embedding Type1 font and TrueType font.
6. Creating encrypted PDF files.
7. Using various character set (ISO8859-1~16, MSCP1250~8, KOI8-R).
8. Supporting CJK fonts and encodings." |
|
Back to top |
|
 |
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3247 Location: Europe
|
Posted: Sat Sep 17, 2022 5:14 pm Post subject: |
|
|
cutepdf.com - CutePDF Writer
"Integrating free CutePDF Writer or Custom PDF Writer within your application
is quite easy. You can print to the PDF Printer driver just as you would to any
other printer. The registry keys below allow programmatic access to the display
mode and filename."
Code: | The following settings work for free CutePDF Writer 4.0 and later.
Setting the display mode:
HKEY_CURRENT_USER\Software\CutePDF Writer\BypassSaveAs
(0 = show Save as dialog box after spooling, 1 = do not show Save as dialog box.)
(This value is of type REG_SZ, not REG_DWORD)
Note: CutePDF Writer will set this value back to 0 after each PDF creation. The Custom PDF Writer won't.
Setting the filename:
HKEY_CURRENT_USER\Software\CutePDF Writer\OutputFile
(Use the key above to set the output file for the PDF. A full pathname (e.g. d:\your folder\your file.pdf) is required.)
|
|
|
Back to top |
|
 |
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3247 Location: Europe
|
Posted: Fri Apr 25, 2025 3:41 pm Post subject: |
|
|
r - Text-to-PDF Converter with ~200 Lines of C89, Requiring Only libc
"Yes it's easy to implement a library based on the code. If we want a library,
fprintf() would even be better than sprintf(). Then we could provide a string-
version wrapper function. The wrapper uses fmemopen() to convert the buffer
to a stream. This could support both string and stream. And while writing to a
stream, it uses no more memory than my original program." |
|
Back to top |
|
 |
|