uzaemon's BBS

Hosted by freeforums.org
It is currently Mon Dec 07, 2009 5:15 am

All times are UTC



Welcome
Welcome to <strong>uzaemon's BBS</strong>.

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, <a href="/profile.php?mode=register">join our community today</a>!


Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Sizing Problem
PostPosted: Wed Jan 30, 2008 4:13 pm 
Offline

Joined: Wed Jan 30, 2008 3:50 pm
Posts: 2
I am using MMAIL/CVTSPLFPDF which is using the SPL2STMF and TIFF2PDF libraries. I believe it is the current version because it was just recently downloaded.
We are running V5R3, and im not sure of the language setting is (my friend says that we are running 35 or 87 whichever is ebcdic)

We are trying to create PDFs with the use of an overlay so that we can include graphics in our documents. The basic set up that I have going right now is that I have a RPG program that creates a spool file. There is a printer file out there that has an overlay so that when the spool file is printed the overlay is of course printed with it. Once the spool file has been created, I then enter the appropriate arguments for CVTSPLFPDF (I edited the code for CVTSPLFPDF so that it would print the pdf vertically instead of the default horizontal).

At this point when I view my newly created PDF I notice that the contents of the document are shrunken down to about a lil bit over a 1/4 of the page and are aligned in the top left hand corner of the page. Which then leaves me with about 3/4 of the page blank. At first I was not sure if this was something that I did wrong on my end before I called the procedure or if it was something with the utilities used in CVTSPLFPDF.

To further test the problem I had the program stop after making the tiff and noticed that the file was shrunk to fit the page there as well. The page that it displays here is horizontal, so my initial guess is that it took the overlay and data and shrunk it to fit the page. Then when i converted it to pdf it took the image and just put the shrunken version instead of the full size.

Also I had printed the spool file directly after I had done these tests and it prints just fine with all information spanning the entier page as it should.
I have recreated this problem many times, and I'm just not sure what I can do to fix it considering I noticed no rotation parameters with the SPL2STMF utility.

As far as I can tell there are no error messages or debug output at all considering that everything seems to work just fine.

If you need anything else let me know

-msmith


Top
 Profile  
 
 Post subject: Figured it out
PostPosted: Wed Jan 30, 2008 9:12 pm 
Offline

Joined: Wed Jan 30, 2008 3:50 pm
Posts: 2
My problem was that on the printer file I need to change the Page size length and width. It was Length 66 and Width 132 but then I changed it to Length 132 and Width 66 and viola. So if someone is having the problem above try changing the page size.

-msmith


Top
 Profile  
 
 Post subject: Similar question from old BBS log
PostPosted: Thu Jan 31, 2008 10:31 am 
Offline
Site Admin

Joined: Tue Jan 29, 2008 3:09 am
Posts: 47
So you resolved your problem by yourself, I guess.
I quote similar discussion from old BBS for your information.

uzaemon@Japan

===========

00906/00906 AAA00000 Ermanno small PDF file
( 1) 05/06/22 03:03

TIFF2PDF with A4 parameter create a PDF file smaller than A4 even if starting TIFF file is in A4 format. In fact using AFPTOOL I got a correct PDF file
Only using these parameters :
TIFF2PDFOK TIFF('/home/fatt5.tif') PDF('/home/fatt80.pdf') PAPERSIZE(*USRDFN) USRSIZE(340 580) ORIENTAT(*V) MARGIN(0)
I can print an A4 but as part of a 340x580 PDF paper size.
Do you know the reason why the generated PDF file in not in A4 format ?
Can you help me ?

Thanks
Ermanno

------

00907/00907 AAA00000 uzaemon Re: small PDF file
( 1) 05/06/22 22:01 00906へのコメント コメント数:4
Ermanno,

> TIFF2PDF with A4 parameter create a PDF file smaller than A4 even if starting TIFF file is in A4 format. In fact using AFPTOOL I got a correct PDF file
> Only using these parameters :
> TIFF2PDFOK TIFF('/home/fatt5.tif') PDF('/home/fatt80.pdf') PAPERSIZE(*USRDFN) USRSIZE(340 580) ORIENTAT(*V) MARGIN(0)
> I can print an A4 but as part of a 340x580 PDF paper size.
> Do you know the reason why the generated PDF file in not in A4 format ?
> Can you help me ?

Can you send "fatt5.tif" to uzaemon@nifty.com from (removed)?

uzaemon@Japan

------

00908/00908 AAA00000 uzaemon Re^2: small PDF file
( 1) 05/06/26 17:25 00907へのコメント コメント数:3
Ermanno、

Thank you for your mail. I looked into the TIF file "FATT5.TIF" and I think TIFF2PDF is working as expected.

Size of "FATT5.TIF" is Width: 3968, Length: 3298 in pixel and there is "white space" area in right part of the file. You may use TIFFINFO program to confirm the information of the file.

Code:
> ADDLIBLE LIB(TIFFLIB)                   
  Library TIFFLIB added to library list.   
> CALL PGM(TIFFINFO) PARM('/tmp/fatt5.tif')

  TIFF Directory at offset 0x1841e           
    Subfile Type: (0 = 0x0)                 
    Image Width: 3968 Image Length: 3298     
    Resolution: 300, 300 pixels/inch         
    Bits/Sample: 1                           
    Compression Scheme: CCITT Group 4       
    Photometric Interpretation: min-is-white
    Orientation: row 0 top, col 0 lhs       
    Samples/Pixel: 1                         
    Rows/Strip: 3298                         
    Planar Configuration: single image plane
  Press ENTER to end terminal session.       


TIFF2PDF scales the TIFF includeing the "white space", thus, you see small image in generated PDF file. See http://homepage1.nifty.com/uzaemon/tiff2pdf_scale.gif for detail.

Please confirm followings:

- Why the "white space" exists? Is that what you specified by overlay, DDS keyword or printer file definition?

- Try generating other image format, for example using QWPGIF. Does that also have same "white space" area?

Waiting for your reply.

uzaemon@Japan

------

00910/00910 AAA00000 uzaemon Re^3: small PDF file
( 1) 05/06/28 07:22 00908へのコメント コメント数:2
Ermanno

> Wonderful. I changed my PRTF reducing line size from 132 to 81 characters and now TIF file is correct (that is A4 format).
>
> In this way I can create PDF files at no charge.

Good :-)

<<< snip >>>

uzaemon@Japan

------


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron