- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: "Printing" reports to PDF file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-24-2008 11:48 PM
тАО08-24-2008 11:48 PM
Re: "Printing" reports to PDF file
Note that this requires modification to run on your site (logicals ops&, txt2pdf in my version and BNT stuff replaced, ...).
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-25-2008 02:11 AM
тАО08-25-2008 02:11 AM
Re: "Printing" reports to PDF file
My guess about your difficulty uploading (and other's downloading) is that it might be to do with the file TYPE.
Most browsers try to make conclusions about the way to handle specific downloads by their file type.
USUALLY (but without guarantee!) a source file can better be renamed to .TXT, and than renamed back on VMS.
This certainly also applies for .COM files.
hoping to have been of some help,
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-25-2008 03:57 AM
тАО08-25-2008 03:57 AM
Re: "Printing" reports to PDF file
Going to next try Wim's and Craig's solutions to see if I can get either one working... Trick is, I have the next 2 days off before the kids start school on Wednesday, so may not get to try them til them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2008 07:43 AM
тАО08-29-2008 07:43 AM
Re: "Printing" reports to PDF file
I am currently working with Wim's script but just found out mime.exe was released with V7.2. I, of course, am stuck on v7.1 for the forseeable future. I am currently working on this (found a few different possible applications) to see which will work here.
Thank you all once again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2008 08:06 AM
тАО08-29-2008 08:06 AM
Re: "Printing" reports to PDF file
Here's one port:
http://mvb.saic.com/freeware/freewarev50/mpack15/
There may be a newer port around.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2008 11:23 AM
тАО08-29-2008 11:23 AM
Re: "Printing" reports to PDF file
I'm also pushing FTPing the files to our file server since many of these are printed to be archived anyway. As soon as I can convince him it was his idea, I think it will done. :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2008 08:11 AM
тАО09-22-2008 08:11 AM
Re: "Printing" reports to PDF file
BTW, I am currently having the converted files FTP'd to the file server and things are working quite well.
Now the problem... If there are more than 1861 pages to be converted, the PDF file can not be read beyond that page. The data is there with no problem, but the pdf formatting at the footer of the file is not wrapping correctly after the second line. If I wrap the /Kids section by hand, the file will work properly. It appears the first line wraps fine almost by accident because of the spaces but the secont line breaks in the middle of a number (5586 for the first failure). If there were a way to wrap if within x characters of the page width or (less elegantly) to wrap after each entry, that would work. Currently the characters seem to wrap around 10000 (did not count them beyond 1000) characters.
The section of code is in the
void WriteRest() section:
writestr("/Kids [ ");
for (i = 1; i <= pageNo; i++) {sprintf(buf, "%d 0 R ", pageObs[i]); writestr(buf);}
writestr("]\n");
Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2008 09:09 AM
тАО09-22-2008 09:09 AM
Re: "Printing" reports to PDF file
Or you could run some post-processing DCL that fixes this formatting error.
Or you can pay somebody to tweak the code. You're almost certainly making commercial use of this code, so toss a couple of hundred bucks into a bounty for a fix, for instance.
As for the official specs and the approach involving fixing the code, the Adobe PDF specs (aka ISO 32000) are available.
http://www.adobe.com/devnet/pdf/pdf_reference.html
http://www.adobe.com/devnet/acrobat/pdfs/adobe_supplement_iso32000.pdf
Or use this as an opportunity to add to your own existing C coding skills and to add to your own resume; to do a little C coding -- you've apparently localized this error down to the particular source code involved, after all. Switch this over to a "how do I do [line-wrapping?] using [printf?] for [desired outcome?] question, for instance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2008 10:21 AM
тАО09-22-2008 10:21 AM
Re: "Printing" reports to PDF file
I placed a "/n" on the line after 0 R and now that part should work for any sized file. Anything beyond that small change would have meant getting someone else involved. I was able to track down the code segment only because of all the fixed text and following the program through. Still don't understand how lots of it works.
As far as getting the change pushed out to the rest of the community, I would like to let Phil Smith, the original author, know but have been unable to contact him and I don't even see the version Craig provided in this thread published anywhere else. V1.2 was provided here, all I find is v1.1 on the web.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2008 10:24 AM
тАО09-22-2008 10:24 AM
Re: "Printing" reports to PDF file
writestr("/Kids [ ");
for (i = 1; i <= pageNo; i++) {sprintf(buf, "%d 0 R \n", pageObs[i]); writestr(buf);}
writestr("]\n");
- « Previous
- Next »