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 Thumbnail(s)
       

.bi   pdfGen.bi (Size: 9.5 KB / Downloads: 101)
.bm   pdfGen.bm (Size: 32.8 KB / Downloads: 99)
.bas   pdfGenImageTest.bas (Size: 3.08 KB / Downloads: 118)
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

Possibly Related Threads…
Thread Author Replies Views Last Post
  PDF Generation update justsomeguy 7 592 12-22-2025, 12:34 AM
Last Post: justsomeguy
  Mystery Mania an 80's Logic Problem Generator justsomeguy 4 1,113 02-09-2025, 08:18 PM
Last Post: justsomeguy

Forum Jump:


Users browsing this thread: 1 Guest(s)