Main Menu

Recent posts

#11
José Roca Software / Re: cPDF Class
Last post by Richard Kelly - June 06, 2026, 11:47:59 PM
PDF is fine with Edge, Chrome, and, QPDF doesn't find any issues yet Adobe Acrobat returns error 18 - expected a name object. I can't seem to find any online checkers that will show my where in the PDF this error crops up. Does anybody have something like the Adobe PreFlight that might at least tell me where and what was expected. I've gone over things line by line and don't see anything.

#12
José Roca Software / Re: cPDF Class
Last post by Richard Kelly - June 05, 2026, 05:38:30 PM
After a bit of hair pulling and testing, I've concluded the best and most consistent results are to embed the True Type fonts used. I'm aligning my internal metrics with the latest Microsoft versions and re-testing the True Type fonts I currently support. Arial, Verdana, and Trebuchet all of which Windows includes. I'll take a look at all the Microsoft standard fonts looking to add them in later.
#13
José Roca Software / Re: cPDF Class
Last post by Richard Kelly - June 04, 2026, 01:02:45 AM
What have we been working on?

If I don't add any font metrics using my internal lists and let the pdf reader just do it's own thing things look pretty reasonable. As far as I can tell, the pdf readers don't do any kerning. If I include my own internal font metric lists (I always let the pdf readers deal with any of the standard 14 standard fonts) again, things look reasonable.

I've added font embed support where TTF files are optionally fully encapsulated into the pdf object stream. Now the PDF readers do kerning and my measure string size is off and underlines are too long. I'm working on adding kerning pairs into an internal Dictionary object and having my measure string adjust it's final calculation by some grand total. We're just getting started, and, if this gets underlining back in order, I'll add kerning whenever a TTF font has not been embedded.
#14
José Roca Software / Re: AfxNova progress
Last post by José Roca - May 29, 2026, 04:51:23 PM
Thanks very much for your efforts.

I've been experimenting with WebView2, and I'm genuinely impressed. This control gives desktop applications access to the full power of a modern browser, which means we can now integrate high‑quality images, animations, graphics, audio, video, printing, and much more—directly inside a native Windows program.

What makes this especially exciting is that the integration with FreeBasic is now seamless. The heavy lifting—initialization, DPI handling, resizing, message routing, and all the low‑level details—has already been solved. From this point on, everything becomes simple experimentation: write some HTML, add a bit of CSS, drop in a JavaScript library, and watch it come alive inside your application.

WebView2 also includes a fully localized context menu with built‑in features like copy, save, zoom, rotate, and print, all without writing any additional code. And because it uses the Chromium engine, we automatically get perfect DPI scaling, smooth zooming, crisp rendering, and support for the latest web standards.

There is an enormous ecosystem of JavaScript libraries available—charts, maps, UI frameworks, image processors, PDF generators, animation engines—and every one of them becomes instantly usable from FreeBasic through WebView2. With the help of AI, generating HTML, CSS, and JavaScript becomes even easier, making it possible to prototype and integrate advanced features in minutes.

In short, WebView2 gives us superpowers.

And now that it's fully integrated into FreeBasic, the only limit is our imagination. I'll be sharing examples so everyone can explore what this control can do. I'm just beginning to learn HTML, CSS, and JavaScript myself, but even at this early stage, the possibilities already look incredible.
#15
PlanetSquires Software / Re: Tiko 1.3 and AfxNova Docs ...
Last post by hajubu - May 29, 2026, 10:27:27 AM
Hi, I just update my previous Html-Help for Tiko 1.3 , which is based on the md-DOCS-folder of Jose Roca AfxNova-Main dated 260528_1945 (Sha AfxNova_260528_1945_998d7f1)

enclosed are two zip containing the changes , the instructions, and Readme and the ready-to-use AfxNova_Web.  Have Fun !

b.r. Hans (Hajubu)

updating  CWebview2.bas to AfxNova_webview2_2026

+ Hi, just updated the  'AfxNova-WebView2' , to integrate a Help Tool for the Docs for 'AfxNova' as html.

+ taken from latest examples / AfxNova-Main\Examples\WebView2\ dated ..._260528_1945 sha 998d7f1 ...

-  Changes - for CWebview2.inc (UserDatafolder, now possible in "User-temp\..."
        - i.e. %userappdata%\\local\\temp\\...) or in ...

Read more in the "Readme_AfxNovaWeb_2026" (*.md /*.html) if you like.

#16
José Roca Software / Re: AfxNova progress
Last post by hajubu - May 29, 2026, 10:19:41 AM
Hi, I just update my previous Html-Help for Tiko 1.3 , which is based on your md-DOCS-folder.

enclosed are two zip containing the changes , the instructions, and Readme
                    and the ready-to-use AfxNova_Web.

Readme_first_if_you_like.

Have Fun !


b.r. Hans (Hajubu)

# AfxNova_Web_2026

Readme for  updating  CWebview2.bas to AfxNova_webview2_2026

+ Hi, just updated the  'AfxNova-WebView2' , to integrate a Help Tool for the Docs for 'AfxNova' as html.

+ taken from examples latest in AfxNova-Main\AfxNova\WebView2\ dated ..._260528_1945 sha 998d7f1 ...

-  Changes
  - CWebview2.inc (UserDatafolder, now possible in "User-temp\..."
        - i.e. %userappdata%\\local\\temp\\...) or in ...
       
1. Markdown to html is done with pandoc - ( fence code rules needing an editor w. R E)

```
  * i.e. 1rst:  regex (```\r\n---\r\n)# -> (```\r\n\r\n---\r\n\r\n)#
  *      2nd:  regex (---\r\n)#        -> (---\r\n\r\n)#
  * and adapting  "Docs" folder names  i.e. Webview2 : - docs\WebWiev2 -> docs\Webview2
  * { A copy of AfxNova-Main-Readme is also available in html-folder }
 
  * Even when .md-docs are updated, the maintenance is an easy-peasy task (took me only 15 minutes)
 
  * The converted .Md-to-.html can just exchanged inside the folder structure.
```

2. When using 'pandoc' as a batch job - actual 137 - by keeping the folder structure the same as Jose's doc-folder

```
- it may be used any Browser locally

* OR on a Webserver (if you like)

* OR also within  IKO 1.3  TOOLS

* ... without or with an adapted Jose's CW_Webview2.bas

* Fitting dir_name_idx.html as page index in this structure let me use it as an offline Help

* Integrating in Tiko is no rocket science.  * It works a simple tool , but it helps a lot.

* File structure : html,css only ( no java,.js no php * no need !)
```

```
3. Optional
- Compiling sample  of AfxNova_WebView2_2026.bas sample
  - Creating/adapting some lines of code in the AfxNovaWeb.ini-file
  - Adapting some lines of the org. CW_Webviev2.bas for updated AfxNova_webview2.bas  ,
        - changing the pWebView2.Navigate(weburl) + start-index could be called from the app.
  - i.e. Instruction are in the CW_Snippet{1,2,3}_WebView2.txt for the CW_WebView2_2026.bas.
```

4. Epilog:

```
Archive:
    * The '_TestPan_AfxNovaWeb2_2026.zip' archive contains
      -  AfxNova_webview2_2026.bas
    * The zipped Readme
          {org_CW_WebView2.bas + snippets.txt(3)) + AfxNovaWeb.ini + this Readme.}
      -  and the AfxNova_Web as html structured folder
Info:
    * As the comiled Webview2-app is to large for upload ,
      attached is only the sources (*.bas,*.ini) in a zip.
    The names of the ini-file :AfxNovaWeb.ini is hardcoded in the source.
   
    * Please do not forget to adapt it to your needs at least in the ini-file.

    *  here the template for the ini-file :
    [AfxNovaWeb]
    Root="V:\_testpan\_AfxNovaWeb14\AfxNova_idx.html"
    Puri="file:///"
   
    *  Comiling with Tiko and AfxNova of _260528_1945 sha 998d7f1... needs
   
    * proj.folder : (work.tiko) new project: manifest.xml,resource.rc
   
    .\AfxNova_WebView2_2026.bas (sample)
    .\loader.js
    .\WebView2Loader.dll
    .\AfxNovaWeb.ini
    and UserDatafolder (applicable, if default is not %TEMP%)
   
    * and if testing at least:
    .\AfxNova_WebView2_2026.exe + .\AfxNovaWeb.ini + Userdatafolder/Temp
   
```
Have Fun !
#17
José Roca Software / Re: cPDF Class
Last post by Richard Kelly - May 28, 2026, 09:47:25 PM
Zlib support added (attached PDF was compressed by Zlib)
Outline/Bookmarks added (you can turn them on in your viewer)
Courier Font added.
Adobe has stopped complaining about my streams. Picky...Picky...

I still have to figure out why underlining is inconsistent.

If there is some part of the PDF 1.7 specification you might find useful, let me know.

When I designed Place Holders that represented static pieces of stuff on every page, I limited it to text objects. I don't see what anything that you could draw on a page couldn't be a place holder, so I'm going to work on expanding place holders to include text, shapes, images, multiline text boxes, and, lines.

Zlib support looks like this: (The FB zlib.bi has a lib reference that isn't defined anywhere I could find)

  ZLibCompress              AS FUNCTION (BYVAL sDestination AS ANY PTR, BYREF nDestinationLen AS ULONG, BYVAL sSource AS ANY PTR, BYVAL nSourceLen AS ULONG) AS LONG
  ZLIBCompressBound          AS FUNCTION (BYVAL sourceLen AS ULONG) AS ULONG


' Load zLib if it provided

    hZlib = LoadLibrary("zlib1.dll")
    If hZlib <> 0 Then
        ZLibCompress = DyLibSymbol(hZlib, "compress")
        ZLibCompressBound = DyLibSymbol(hZlib, "compressBound")
        If ZLibCompress = 0 ORELSE ZLibCompressBound = 0 Then
          FreeLibrary hZlib
          hZlib = 0
        End If

    End If

*** Update *** I added lines, shapes, multi list test, and images to the placeholder object. Underlining looks more consistent. Example PDF updated.
#18
José Roca Software / Re: AfxNova progress
Last post by José Roca - May 28, 2026, 02:33:22 AM
The old WebBrowser control used to navigate to HTTPS sites, although modern pages rendered incorrectly due to the outdated MSHTML engine. Older HTML pages still displayed fine.

After recent Windows updates, HTTPS support has effectively been removed from the legacy Internet Explorer engine, so the WebBrowser control can no longer load secure sites.

It still works with HTTP pages and local HTML files.

This change is permanent and expected, as Microsoft has fully deprecated Internet Explorer. Anyone still relying on the old WebBrowser control should migrate to WebView2 as soon as possible.

Fortunately, AfxNova provides classes for WebView2, which is the new standard and fully supports modern web technologies.
#19
General Board / Re: SQLitening Database Manage...
Last post by Mike Doty - May 27, 2026, 09:32:33 AM
SQLitening by Fred Meiers will have some code posted at https://pbusers.org/forum/index.php

I  posted this here because AI is having a hard time finding PowerBASIC programmers and SQLitening code.
#20
José Roca Software / Re: cPDF Class
Last post by Richard Kelly - May 23, 2026, 04:45:13 PM
Shapes and Images support added with thumbnails option added.