Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PDF Generation and Mystery Mania
#31
(03-09-2025, 05:01 PM)James D Jarvis Wrote: I'm using the example you posted. The PNG files do NOT get placed visibly in the PDF. The vectors shown were added to a page.

It looks like you are watching it with Microsoft Edge.
He definitely can't! It doesn't work for me either, I have to use another PDF reader.
Only text is not possible with graphics.

Your demo program is okay, use another PDF reader and you see the PNG graphics in the PDF. Big Grin
Reply
#32
here's what I get opening the document in Adobe Acrobat.  The document is displayed as 3 blank pages. 
[Image: image.png]

This path loaded just fine all by itself on a separate pdf. 
[Image: image.png]
Reply
#33
(03-09-2025, 05:22 PM)James D Jarvis Wrote: here's what I get opening the document in Adobe Acrobat.  The document is displayed as 3 blank pages. 
[Image: image.png]

This path loaded just fine all by itself on a separate pdf. 
I see that. Tongue



   
   
   
Reply
#34
What platform are you on? I'm using Windows and the generated files do not function as expected when they have placed png files. Not in Edge. Not in the full Adobe Acrobat. 

I commented out the PNG related lines and I get this: 
[Image: image.png]



[Image: image.png]
Reply
#35
I use Windows 10 Home QB64PE v 4.1
Reply
#36
Windows 11 Home. Qb64PE v 4.1
Reply
#37
Holy Cow! Windows and Acrobat are a PITA. It took me longer to get stuff setup and running than it did to "fix" the problem. Thanks Microsoft and Adobe for the reminder why I don't use your products.


[Image: Capture.png]

Hopefully that gets it for you Acrobat guys. 

On a lighter note. I decided to have a little fun with this project and write a book.

Its a very useful book indeed! It has all the numbers from 1 to 100,000 all 390 pages! We all need numbers and you never want to be without, get your copy today!

Its a silly little project that show cases then pdfAddTextBlockEx$ function. It will make adding larger blocks of text to the PDF easier.

Code: (Select All)
    'Pass in bigString$ It will add enough text to fill the width
    'and line count (Like an entire page)
    'Returns with the left over text that was not consumed.
    'Gives the opportunity to add page numbers and other decorators.
    bigString$ = pdfAddTextBlockEx$(Max_Width, Line_Count, bigString$)


Attached Files
.bi   pdfGen.bi (Size: 10.49 KB / Downloads: 7)
.bm   pdfGen.bm (Size: 36.54 KB / Downloads: 7)
.bas   pdfBON.bas (Size: 6.14 KB / Downloads: 7)
.bas   pdfGenImageTestA.bas (Size: 1.45 KB / Downloads: 7)
Reply
#38
It's working now. Thanks for all the work you did. I opened the generated file in Edge, Adobe Acrobat, Illustrator, and Photoshop. It opens fine in all of them.
Reply
#39
(03-09-2025, 12:04 AM)justsomeguy Wrote: I also added embedded Author and Creator in the PDF so that you can identify the source.
How do I do this?

[edit]
Just looked at your book of numbers. Really good storyline ;-)
I assume you use the following to add the info:-

pdfDefault.info.title = "Book of Numbers"
pdfDefault.info.author = "Justsomeguy"

and I assume he following are also valid?

pdfDefault.info.creator
pdfDefault.info.producer
Oh look. A sig line :-)
Reply
#40
Correct, these are all valid:

pdfDefault.info.title
pdfDefault.info.author
pdfDefault.info.creator
pdfDefault.info.producer

Creation Date and Mod Date are the current time on your machine except for the timezone offset (+,-,Z) and hours and minutes of the offset.

I can add Subject and Keywords as well, but I didn't get around to it.
Reply




Users browsing this thread: 11 Guest(s)