Create a PDF directly

Started by Nicola, April 04, 2024, 09:13:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nicola

Hi, 
I wanted to ask if there is a way to produce a PDF file directly with O2. For example, turning a jpg file into a pdf or other.
Thank you

Charles Pegge

Looks like a major project for o2 programming:

https://en.wikipedia.org/wiki/PDF#File_format
https://pdfa.org/resource/pdf-specification-archive/
iso 32000

but there are a wide range of utilities on the web.

Nicola

#2
yes Charles, there are many sites that do this service and they are also effective, but I saw on the autoit3 forum that they have created a UDF that allows you to create PDF files from program, without using virtual printers or having APIs. It seems to me that he uses GDI+.

Of course, surely those who created the UDF are familiar with the data structure of a PDF and have created the various fields and related data. I've seen that he even implemented Fonts.

Zlatko Vid

there is old PDF program written in XBlite compiler which use goAsembler
i think that i tried it long time ago
and seems that overall result is very poor..
so i don't know what this autoIT3 program do and what GDI+
have with all this ..
PDF is what Portable Document Format
it is something like compressed RTF ...
what is UDF ..i don't know  ::) 



Nicola

Hi Charles, 
the information from idrsolutions is very interesting.
Very good.
I also found how to do it via qpdf with the use of a json...
...

For now, I'm using programs that use the command line.
Cheers

Charles Pegge

Limited time and energy constrain me from getting more involved, unfortunately. I am a limited resource. AI to the rescue? :)

Nicola

Seeing what you've accomplished, you make a mockery of AI.
O2 has a lot of potential.

Only one problem for me.
... I won't hide from you that, due to my lack of knowledge, I would like the listings to be more explained. INC files, for example. It wouldn't hurt to know right away which functions are for internal use only. But even this takes time and energy
 

Zlatko Vid

Nicola

INC file is just o2 file you can include and not have as main file
so nothing ultra special

Theo Gottwald

You can use AI to get a detailed description and comment section for nearly any sample.
It must not be done by a human.
You find a lot of competing AI's linked here in the Forum.
Today i have added one more.

LMSYS-AI Benchmark
Ask any question to two anonymous models (e.g., ChatGPT, Claude, Llama) and vote for the better one!
You can chat for multiple turns until you identify a winner.
Votes won't be counted if model identities are revealed during the conversation.

Nicola

Hi Theo,
I'm using COPILOT to do some research. In fact, I find it useful as a research tool, but I often find inaccuracies. It is also often inaccurate by taking information that has been classified as incorrect to be true. I've reported it several times...