I made a pdf file in VB6 which can be read by Adobe Reader 7 and 8 but not by Adobe Reader 11

Disappointing as it took quite a while to get everything together for this.  I had thought with the .pdf standard that Adobe Reader 11 would read everything that version 8 would.
The pdf file is a 2 page report including text boxes on page 1 and a jpg on page 2.
Attached is the utility I included in my project to generate it as well as an example report.

I haven't attached the actual project at this stage, but might do so if necessary.

Thanks
Paul

I just found that the utility source would not upload because of the fonts files suffix .afm.  The example included a Fonts subdirectory and a few standard fonts files, like Helvetica.afm, Helvetica-Bold.afm.
2015-10--Oct--21-1244-F2.pdf
VB-PDF-source-2-.zip
pau1scottAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Alan HendersonRetired marine engineerCommented:
0
arnoldCommented:
Will ha e to check whether the newer version generate an error during rendering and will get back.
0
pau1scottAuthor Commented:
Alan Henderson - I can see it myself already with the older versions of Adobe Reader, but I want various end users to be able to read it even if they happen to have Adobe Reader XI

arnold - thanks, I'll wait

Paul
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

arnoldCommented:
Unfortunately, the versions I have 8.x and DC open the file.
Looking at document properties, the issue with XI might be that the Modified Date: is missing.
Even if takes you a few seconds to create the document, the modified date should be the same or later.

See if that makes a difference.

Does the XI versio spit out errors indicating what the issue might be or does it simply crash?
0
pau1scottAuthor Commented:
If you double-click the report file, XI starts but with no file as if you started it from Start>Programs.
From XI, if you File>Open, it says "This File is damaged."
0
arnoldCommented:
Adjust your code to add the modified date a few seconds after the created date  and see if that fixes the issue with reader xi.

If you followed the suggestion and obtained foxit reader, document properties will have modified date reflecting invalid date.
0
pau1scottAuthor Commented:
I used notepad (!) to edit the report and found there was no moddate:
%PDF-1.3
1 0 obj
<<
/Producer ()
/Author ()
/CreationDate (D:20151021124452)
/Creator ()
/Keywords ()
/Subject ()
/Title (Fermenter Brew Report)
/ModDate ()
>>
endobj

So I put in the mod date of 3 seconds later, and the problem persisted.  

Quite surprised, I didn't realise pdf was a text based thing.

Anyway I had another pdf thing called Nitro Reader and opened the file with that.  It gave the message "The requested page number is invalid and does not exist in the document" - now there's a clue.

Nitro also could not find the graph on the second page - maybe it was lost by Notepad.

Then I took the original version and it had the same Nitro message about the page number.  (Still opens without a problem with Adobe Reader 8.  I remember that having started with an example, I removed some of the bookmark stuff.  I can't access the VB6 system till tomorrow (17:30 here at present).
Any tips based on all this?  
Regardless I'll let you know.
Cheers
Paul
0
arnoldCommented:
PDF  defining the structure of the document, elements with binary data as content.
Similar to postscript.....

I'll take a look at the raw file to see if there is a page reference.
0
pau1scottAuthor Commented:
hi arnold, now it will be Monday before I get to the (customer) system.  I haven't set up VB6 properly on my W7 machines, and have no reason to spend that time at present.  You have been a good expert help and I think I'm nearly there but I don't want to close this without finding the problem.  Have a good weekend
Cheers
Paul
0
arnoldCommented:
Trying to see PDF structure

http://partners.adobe.com/public/developer/tips/topic_tip31.html
It has PDF structure references for different versions types.

Which version of reader XI do you have. Tested on 11.0.13 without an issue. It displayed an out of memory error.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
pau1scottAuthor Commented:
Hi Arnold,

I am using 11.0.13 on a 32 bit W7 machine.  My PC at home had I think the same version, and it was W7 64 bit.

I added the modified date (+3s) and put back in bookmarks on pages 1 and 2, but the problem on my Acrobat/PC persists.

Since you said it worked on Acrobat Reader DC and since the customer's SOE is probably an older version of Acrobat, I'll treat it as an acrobat reader version issue if they have problems.  That will be a different question.
0
arnoldCommented:
The modedate format is not right.
Adding 3seconds was merely a suggestion to increase the string.

To D:20151021124455
the +3s is not a valid modifydate

I am not sure what page reference identified .......
If modified date parameter is included it should be set to either the same date as the creation date or some time later.......
though in some other than reflecting illegal date, or some strange string do not think it will have the consequence you've seen.....
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.