Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PDF Generation and Mystery Mania
#14
First all, Thank you for the support.

I made some progress color images. To conserve on the size of the PDF, you can select if the image will be grayscale or RGB. RGB adds a significant amount of data to the image. The default is set for RGB.

Code: (Select All)
pdfSetImageDevice PDF_IMAGE_DEVICE_GRAY ' for Grayscale
pdfSetImageDevice PDF_IMAGE_DEVICE_RGB 'for RGB

pdfSetMediaBox has been fixed. (I hope) You should be able to set each page to its own size, just do it before pdfAddPage

On the second page of the PDF is an example I found in the 1.0 specification that I though was neat.

Let me know if there is still problems with images. I'm using the Ubuntu default PDF viewer, so there may be some differences between implementations.

[Image: Screenshot-from-2025-03-06-18-32-52.png]


Attached Files Image(s)
       

.bi   pdfGen.bi (Size: 9.5 KB / Downloads: 14)
.bm   pdfGen.bm (Size: 32.8 KB / Downloads: 14)
.bas   pdfGenImageTest.bas (Size: 3.08 KB / Downloads: 13)
Reply


Messages In This Thread
PDF Generation and Mystery Mania - by justsomeguy - 03-01-2025, 07:17 PM
RE: PDF Generation and Mystery Mania - by bplus - 03-01-2025, 07:22 PM
RE: PDF Generation and Mystery Mania - by justsomeguy - 03-07-2025, 12:54 AM



Users browsing this thread: 31 Guest(s)