PDF resize

Hai guyz,
   I have one requirement to download the alv report as PDF. Am using CONVERT_ABAPSPOOLJOB_2_PDF function module to convet to pdf and GUI_DOWNLOAD to download. My ALV consist of 36 fields. When am trying to download its going to runtime error. When am trying with least alv  fields (10-15 fields ) its downloading perfectly. I think I want to increase the width of the pdf
is there any solution for this? kindly help me...
am passing following parameters in   CONVERT_ABAPSPOOLJOB_2_PDF
  call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
    exporting
      src_spoolid = w_spno      -
spool no
    tables
      pdf         = it_pdf.----
internal table
thanks in advance..
Riyas

Hi,
as mentioned in a link,follow the code may help u:
report zabap_2_pdf.
*-- Enhancements: only allow to be run with variant. Then called
*-- program will be transparent to users
*-- TABLES
tables:
tsp01.
*-- STRUCTURES
data:
mstr_print_parms like pri_params,
mc_valid(1) type c,
mi_bytecount type i,
mi_length type i,
mi_rqident like tsp01-rqident.
*-- INTERNAL TABLES
data:
mtab_pdf like tline occurs 0 with header line,
mc_filename like rlgrap-filename.
*-- SELECTION SCREEN
parameters:
p_repid like sy-repid, " Report to execute
p_linsz like sy-linsz default 132, " Line size
p_paart like sy-paart default 'X_65_132'. " Paper Format
start-of-selection.
concatenate 'c:\'
p_repid
'.pdf'
into mc_filename.
*-- Setup the Print Parmaters
call function 'GET_PRINT_PARAMETERS'
exporting
authority= space
copies = '1'
cover_page = space
data_set = space
department = space
destination = space
expiration = '1'
immediately = space
in_archive_parameters = space
in_parameters = space
layout = space
mode = space
new_list_id = 'X'
no_dialog= 'X'
user = sy-uname
importing
out_parameters = mstr_print_parms
valid = mc_valid
exceptions
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
others = 4.
*-- Make sure that a printer destination has been set up
*-- If this is not done the PDF function module ABENDS
if mstr_print_parms-pdest = space.
mstr_print_parms-pdest = 'LOCL'.
endif.
*-- Explicitly set line width, and output format so that
*-- the PDF conversion comes out OK
mstr_print_parms-linsz = p_linsz.
mstr_print_parms-paart = p_paart.
submit (p_repid) to sap-spool without spool dynpro
spool parameters mstr_print_parms
via selection-screen
and return.
*-- Find out what the spool number is that was just created
perform get_spool_number using sy-repid
sy-uname
changing mi_rqident.
*-- Convert Spool to PDF
call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
exporting
src_spoolid= mi_rqident
no_dialog = space
dst_device = mstr_print_parms-pdest
importing
pdf_bytecount = mi_bytecount
tables
pdf = mtab_pdf
exceptions
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
others = 12.
call function 'DOWNLOAD'
exporting
bin_filesize = mi_bytecount
filename = mc_filename
filetype = 'BIN'
importing
act_filename = mc_filename
tables
data_tab = mtab_pdf.
FORM get_spool_number *
Get the most recent spool created by user/report *
--> F_REPID *
--> F_UNAME *
--> F_RQIDENT *
form get_spool_number using f_repid
f_uname
changing f_rqident.
data:
lc_rq2name like tsp01-rq2name.
concatenate f_repid+0(8)
f_uname+0(3)
into lc_rq2name separated by '_'.
select * from tsp01 where rq2name = lc_rq2name
order by rqcretime descending.
f_rqident = tsp01-rqident.
exit.
endselect.
if sy-subrc ne 0.
clear f_rqident.
endif.
endform." get_spool_number
OR
u can use other method:
First convert the output internal table data to OTF using FM 'CONVERT_OTF' and then download it using 'GUI_DOWNLOAD'.
AND CHECK Sample programs:
RSTXPDFT4
RSTXPDFT5
Thanks & regards.
Edited by: anusha25 on Oct 28, 2011 10:17 AM

Similar Messages

  • PDF resizing Pages doc by default

    I've created a Pages doc that I need to export into a PDF. When I do this and open the PDF file, I see that it is resized to about 85% to 90% of the original size. There seems to be nothing I can do to make this not happen. I need the PDF to reflect the size of the original document.
    Any help is greatly appreciated

    Welcome to Apple Discussions
    If you are using Pages 2/iWork '06, do you have comments turned on? That will enlarge the left margin when printed. Also, make sure you have the correct paper size selected in Page Setup… I find Preview is impossible to determine what the actual page size is, so, if I need to know that for sure, I open the PDF in Acrobat Reader. Every time, the PDF is the same as the original size in Pages.

  • Automatic pdf resize from large document

    Help!  I work in a library and I often print large-scale posters (30x40inch).  I ask mac users to send me  posters as a .pdfs to avoid translation issues (I open and print documents on a pc).  When mac users have been using the "save as" command to create pdf documents, their large scale posters are automatically resized to 8.5x11 inches.  How can I instruct students to create their pdfs so that the original page dimensions will remain?
    Thanks!

    They are saving their documents as .pdfs in Powerpoint on a mac.

  • PDF resizing

    We all know about the PDF technology used in OSX so surely there must be a way of resizing a numbers of PDF's that I have. In size I mean physical size, ie an A3 pdf document to an A4 pdf document. Is there a way? A piece of software or is there a setting anywhere within the OS where I can specify a percentage reduction?
    Cheers
    iMac isight 20' 2.1, 1G Ram, Airport   Mac OS X (10.4.3)  

    Thanks again Matthew
    I've had a read of the application - it looks like you can save sections out of the orginal pdf which you can resize etc - I would like to keep all the information in a PDF.
    Heres a little more information on what I need. I have some over sized A4 pdf documents - Multi pages (up to 24 pages in some cases) - I need them all in A4 size so all the information on the pages doesnt re-run. They are all created in Quark express - is there anyway of exporting from Quark in a percentage reduction Postcript file so that I could run it through Acrobat?
    I dont want to go down the eps route as each document has so many pages - I would take me weeks to do it that way.
    iMac isight 20' 2.1, 1G Ram, Airport   Mac OS X (10.4.3)  

  • Script to resize pdf-files by percentage

    Dear all,
    I have a rather simple problem: I need to resize a collection of several pdf files (around 60) by a certain percentage, because those files are included in a text (LaTex) - and I need to change the LaTex page style (in other words: the layout) - so that my old images are all a bit too large for the layout; thus I want to do a quick-and-dirty solution and resize them all by a certain percentage (defined by the difference between my old layout and the new, more slim one).
    So - the simple question is: does anyone know either if there is simple free software out there that can do this (I didn't find any - and Acrobat 9 doesn't offer the possibility to change the dimensions of pdf images) - or, b) if this would be possible to do with Applescript? Off course, I wouldn't mind a ready-made script - but, since I don't know, but want to learn Applescript, I thought that this might be a good task to start with - although I also need a solution in 3 to 4 days - hope it wouldn't be a too frustrating task to start with...
    Thanks for any hints!
    With kind regards,
    Björn
    Message was edited by: bBcuda

    Hello
    You might try something like the following script.
    It will a) resize the pdf image by using Image Events and save it as png and b) convert png to pdf by png2pdf.
    You'd need to have png2pdf installed in advance.
    (Image Events can open pdf but cannot save as pdf according to the document.)
    The script will let you choose source folder where original pdfs reside and destination folder where modified pdfs are to be stored. Also it will let you specify scaling factor. After that it will open each pdf file (*.pdf) in source folder, resize and save as new png file in destination and then convert the png to pdf (and delete png if successful). Hopefully it's like that.
    Script is NOT tested and I don't know how good (or bad) Image Events and png2pdf are, for I don't use OSX for myself. Sorry about that.
    Good luck,
    H
    --SCRIPT (NOT TESTED)
    Using Image Events and png2pdf
    Image Events
    http://www.apple.com/applescript/imageevents/
    http://www.apple.com/applescript/imageevents/04.html
    http://www.apple.com/applescript/imageevents/08.html
    png2pdf
    http://png2pdf.sourceforge.net/
    http://png2pdf.sourceforge.net/png2pdf.pdf
    main()
    on main()
    script o
    property scaling_factor : 0.8 -- default scaling factor
    property remove_png : true -- whether remove intermediate png files or not
    property nn : {} -- working list
    --(0) preparation
    -- (0.1) set input and output directories (= ind, indp, outd, outdp)
    set ind to choose folder with prompt "Choose source folder."
    set outd to choose folder with prompt "Choose destination folder."
    set indp to ind as Unicode text
    set outdp to outd as Unicode text
    -- (0.2) set scaling factor (= r)
    set r0 to scaling_factor as string -- default scaling factor as string
    repeat
    display dialog "Enter scaling factor." default answer r0 with icon 1
    try
    set r to text returned of result as real
    exit repeat
    on error --
    end try
    end repeat
    -- (1) process each pdf file in input directory
    set nn to list folder ind without invisibles -- get item names
    repeat with n in my nn
    set n to n's contents
    if n ends with ".pdf" then -- only process "*.pdf"
    -- (1.1) open pdf, resize and save it as new png file
    set infp to indp & n
    set outfp to outdp & n's text 1 thru -4 & "png" -- set output path
    tell application "Image Events"
    set p to open (infp as alias)
    scale p by factor r
    save p as PNG in file outfp
    close p
    end tell
    -- (1.2) convert png to pdf (and optionally remove png if successful)
    set infpx to quoted form of POSIX path of (outfp as alias)
    set outfpx to quoted form of ((POSIX path of outd) & n)
    if remove_png then
    do shell script ("png2pdf -p1.4 -n -a " & infpx & " " & outfpx & " && rm -f " & infpx)
    else
    do shell script ("png2pdf -p1.4 -n -a " & infpx & " " & outfpx)
    end if
    end if
    end repeat
    -- (2) decent notice
    display dialog "Done." with icon 1 giving up after 5
    end script
    tell o to run
    end main
    --END OF SCRIPT
    Message was edited by: Hiroto (fixed typo)

  • Printing 12 x 18 (Mac)

    hi all,
    apologies for the multiple posts but i am new to ID and new to mac and i am trying to get moving after having to do a fresh install of both my OS's.
    can anyone walk me through (or point me to a url that will do this) setting up a PRINT SETTING for 12 x 18 paper on an epson 1100 printer? i have worked in Windows previously with CAD based drivers and such but i have never figured out what is going on with the mac and i am constantly seeing different dialogs for this for different software i suppose.
    i tried to get into the ID software to do this but the "custom" setting was greyed out and all the other listings did not include a 12 x 18. also, the original is 24 x 36.
    thanks for any help. this has had me clutched for quite awhile.
    - jon

    Jon -
    It's been a while since you posted, but I'll take a stab at helping nonetheless. It's tough to give you complete specifics for your exact printer, but here are some basics for printing a customized paper size from InDesign... (I have ID 5.5, so I'm using that to give these instructions, but the concept is the same for CS3 and up).
    File–>Print.
    The "custom" setting is grey or unavailable until you set up a new setting...so let's do that.
    Choose the printer you wish to use - in your case, the Epson 1100.
    The PPD should fill in automatically, if not, you can choose the appropriate PPD (the print driver for your printer).
    Now you need to go through the windows on the left side of the screen to set up the rest of your print options.
    General:
    Choose the number of copies, page range, etc. If you have two pages in a spread and want to print them together, check the "spreads" box. I think the rest of this page is self-explanatory.
    Setup:
    Choose a paper size here. This is where things can get a little tricky and where you'll have to answer a few questions for yourself... What paper size are you actually printing on? It looks like the Epson 1100 prints on 11x17 and 13x19 sizes. Depending on your PPD, these sizes may already be listed in the "Paper Size" drop down menu. If not, you can add the size using the "Page Setup" button on the lower left hand corner of the Print dialog box. (You'll see a warning message pop up, you can ignore it for the moment. In the new window, under "Paper Size" choose "Manage Custom Sizes" and enter the dimensions of the paper. Click OK. Make sure the new size is chosen in the Page Setup and click OK again.) Back in the Print dialog box....now you should have the correct size listed under paper size. If your original document is larger than 11x17 or 13x19 as you indicated, then you want to look under the "Options" section and click on "Scale". Choose between Width (where you can choose exact scaling yourself) and "Scale to Fit" (where InDesign will do the scaling for you). (*I'll note that this is all completely unhelpful if you actually want to print at EXACTLY 12x18 on a larger sheet of paper. If that's the case, might find it faster to export your document in a PDF, resize your pages to 12x18 and then print them out.)
    Marks & Bleeds:
    If you want to include crop marks, registration marks, etc. this is the place to do it. If you want to include any bleed on your print out, you can do that on this page as well.
    Output:
    Looks like the Espon 1100 is a CMYK printer, so this window will probably say "Composite CMYK". If you wanted to print separations, you may have that option on this page if your PPD allows it.
    Graphics:
    Images - Send Data - set to "All". You may or may not have other options available depending on your PPD, set them as you feel appropriate. Postscript level 2 or 3 should be fine.
    Color Management:
    I've found that many people have very specific color management preferences of their own, so set this as you prefer. However, if you don't have any particular preferences, I'd suggest that you set the color handling to "Let InDesign Determine Colors". It's likely that you'll have a default printer profile show up, and it may be best to go with that.
    Advanced:
    OPI - hopefully this is grayed out. If it's not, make sure that nothing is checked.
    Transparency Flattener - If you don't have your own settings, then set this to High Resolution
    Now, before you print, click on "Save Preset..." and all of the preferences that you just set up will be available the next time you want to print. The "Custom" tab at the top will have a new preset available with your new settings! Ok, now print!
    I hope that helped or helps in the future. Good luck with InDesign and your new Mac!

  • Resize action with pdf

    I'm currently having problems with the batch feature regarding pdf files which I can't figure out. My main task is to automatically resize several (50+) pdf files in a folder, save them for web as jpg and then close the original file without saving it. I've tried to make an action for this, but I only end up getting errors or Photoshop trying to overwrite the same file all the time when saving the images.
    I did manage to make a successful action which worked as batch if I had all the files open in Photoshop, but that's not really what I'm after since I then have to open all the 50+ files first manually. What I would want is for Photoshop to go through all the pdf files in my source folder - resize them - save for web - close original image wihtout saving.
    I'm currently using Photoshop CS2 if that's any help.
    Is there anyone who can help? A step-by-step solution would be greatly appreciated!

    well, you're doing something wrong because that option should fix the problem with overwriting the same file over and over again
    http://help.adobe.com/en_US/Photoshop/11.0/WS0919E751-BC6D-4cc6-925E-BA18D561A76Fa.html

  • Resize image in pdf file

    I need to resize image in pdf ,
    I get this [http://www.java2s.com/Tutorial/Java/0419__PDF/Positionandresizeanimage.htm]
    I try to put the code in my servlet
    but I get error on not static method on PdfContentByte cb = writer.getDirectContent(); how to deal this problem
    Thank You

    PdfContentByte cb = writer.getDirectContent();There is no such method in the JDK or the Servlet API.
    Ask whoever provides it.

  • No Longer Able To Resize Images (PDF Attachments)

    I recently upgraded to Snow Leopard and am now unable to resize my PDF attachments once they are within an email.
    Maybe I'm missing something, but in the older version of Mail / Leopard I was able to easily resize my attached PDF's on the fly by simply adjusting their size from a drop-down menu in the lower-right corner of the email window by selecting: Image Size: "Small" "Medium" "Large" or "Actual Size."
    To the best of my knowledge, this window no longer exists for PDF's, although it is still available for attached JPEG resizing.
    I am deeply invested into using and resizing PDF's in my workflow and would like to regain this ability.
    Any suggestions or solutions for this dilemma would greatly be appreciated.
    Thanks,
    John

    Please check this further -- make sure you open the PDF with a PDF reader in a copy either sent to yourself or in the Sent mailbox. Do not base the resolution on what you see if it is a one page PDF, and Mail is displaying it in the message with View in Place. The View in Place is not the full story.
    Ernie

  • Can a SWF file resize in the PDF when user zooms or goes 'full screen'?

    Hi,
    I've got some animation in my Indesign file which I've exported as a SWF and brought back in to InDesign.
    I then create the Interactive PDF. It has a white background, so I select it in Acrobat and got to PROPERTIES and give it a transparent background.
    BUT, when I go full screen or above 75% - the SWF shrinks on page.
    The users of this PDF will need to zoom in, or go full screen. I really need the SWF to be resizing as the user goes full screen, or views it however they choose.
    Is there a way to set the SWF to resize with the PDF?

    Let me guess. You’re using InDesign CS5 and never bothered to install any of the patches.
    Download and install 7.0.4.
    Bob

  • We have version 10.5.8 photoshop CS3 for Mac. How do we fix a problem with photoshop not resizing dpi? For example we resized a 72 dpi image to 200 dpi, when we do a pdf analysis it read as 344 dpi.

    We have version 10.5.8 photoshop CS3 for Mac. How do we fix a problem with photoshop not resizing dpi? For example we resized a 72 dpi image to 200 dpi, when we do a pdf analysis it read as 344 dpi.

    Sounds like it's a problem with the Acrobat settings. Did you set them to the same resolution?

  • How can I resize a pdf page content with annotations and highlights in Acrobat Pro?

    How can I resize a pdf page content with annotations and highlights in Acrobat Pro while maintaining page size and annotation/highlight interactivity? I've tried to use the crop tool in Acrobat Pro (9) and the page does resize, but the highlights and annotations go all over the place. I specifically need to scale the page content smaller (83%) but maintain page size and annotation/highlight to content connection and interactivity.

    An old trick (not recommended) would be to print to a new PDF with the page size selected but a scaling of the content. Only print the document, not the markup, to a new PDF. Close that PDF when done and reopen the old one (or maybe a copy of the old one for safety) and use Document Replace pages and select the new document to replace your current pages. You will then have to go back through the markup to locate it all correctly. There may be a more elegant way, but this may be the fastest.

  • How does I resize a pdf file page using Acrobat Pro?

    In Acrobat Pro, how can one resize a pdf file page (21.38'' x 26.75'') into one measuring 6'' x 9'', to be submitted as the trim size? Is there a feature that allows this to be done? How does one set all print options from the Application print dialog box to enable one to adjust the dimensions of any customized file page?

    I want to scale the 21.4'' by 26.8'' content down to one that can be fitted inside a 6'' by 9'' book.
    I have this pdf that was created from the InkFlow app, and I'm using Acrobat Pro to merge three files into one (about 300MB), which I needed to submit to Amazon's CreateSpace, but they needed the trim size of 6'' by 9'', while the pdf is 21.4''' by 26.8'', and I can't amend the source file size of the InkFlow files.
    I tried fiddling with the Crop and Print options, but I'm unable to resize the pdf to match the trim size. The problem on my side isn't so much on printing but to resize the pdf file page to 6'' by 9'' to satisfy Amazon's requirement for their trim size. Could this be done with Acrobat Pro? The message that appears is: Full print options of Acrobat Pro, set all print options from the Application print dialog box. Thank for the help.

  • Resizing Multiple Page PDF file For OCR

    On my Quad-Core Intel Xeon Mac with OSX 10.8.5, I am using either Acrobat Professional 9 and Acrobat Professional 10  to assemble PDF documents from a significant number of legacy page and map images (tiff). Unfortunately, it intreprets the tiff files to create a document that's about 36.7" by 50.06" in page size. Unfortunately, this size is too large to run through the OCR. I have tried print to a pdf on both Acrobat Professional 9 and Acrobat Professional 10. When I attempt to it tells me I can't save to a pdf from print. Neither the tiffs nor PDFs that I made from them are password protected.
    The suggested solutions, which I have found, do not solve my problem. Needless to say, simply printing them at a reduced size does not solve the problem of not being able to to run them through the OCR. Also, I have numerous pages, which makes resizing them individually in Photoshop simply too time consuming as a solution. Finally, neither I nor the company I work for have the money for third-party software that costs very much, over 80 to 100 dollars simply to solve this single problem.
    How can I scale down the page size of either a multipage PDF file or as a batch of individual files within either Acrobat Professional 9 or 10 so I can run them through the optical character reader (OCR)? 
    Alternatively, is there software (Photoshop?) that I can use to batch resize the tiff files?

    Bill@VT asked:
    "Is the problem the size or the resolution? You are saying it is too large
    to run through OCR, but I am not clear what the "large" refers to."
    Being 36.07 inches by 50.06 inches, the image file it is too large in page size (inches) to run through the OCR. When I tried to OCR it, I get the following error message:
    "Acrobat could not perform recognition (OCR) on this page because:
    This page is larger than the maximum page size of 45 inches by 45 inches"
    Also asked:
    1. "When you say you tried to print, was that to the Adobe PDF printer?
    Yes, that was to the Adobe PDF printer.
    2. "Did you set the printer properties to compress the file to a smaller size?"
    No, I did not set the printer to compress the file in order to make the file size smaller in terms of bytes.
    3. "Have you tried printing the PDF you created to a new PDF using the shrink to fit option?"
    Yes, I set the printer to creat a new PDF using the shrink to fit option in order to create a file that was smaller in terms of page size (inches) instead of file size (bytes). When I did it, I received an error message that stated:
    "Saving a PDF file when printing is not supported. Instead choose File >Save."

  • Resizing multiple page PDF's

    hi, hope I'm asking this i the right place... ! I'm creating a graphic design portfolio and i want to make it as easy as possible to view.
    the 14 page pdf i have at the moment is too big to view onscreen, is there any way to resize the document, -or - is there a particular paper size that suits viewing onscreen?
    thanks in advance,
    ned .

    I am not sure I completely understand your need: on screen viewing in most of the reasonable PDF viewing tools has as a default strategy to make the page fit inside the document window (you can increase the likelihood of this by adjusting the "Initial View" settings in the PDF, in Acrobat see File -> Document Properties -> Initial View).
    Or are you rather not referring to page size, but to amount of data/file size? And not to onscreen viewing but online viewing over the internet? In that case, PDF Optimizer in Acrobat Professional might be your friend, it has numerous options to bring down file size.
    Olaf Drümmer

Maybe you are looking for

  • GT70 2PC – Software testing and performance report.

    It is so excited here again. Currently, my first/only object after work is playing Titanfall. I intended to share another performance testing today. But I didn’t. I found there are too many great open box posts on different forums. Therefore, I decid

  • Why am I having this problem importing photos from iPhone to iPhoto?

    I'm getting the error: Error downloading image. iPhoto cannot import your photos because there was a problem downloading an image. when I "Import All..." from my iPhone. Trying to import individual images I get The following file cannot be imported.

  • Is it possible to replace a rechargeable battery of Nomad ZEN Ver. USB

    Hi, is there a possibility to change the build in battery for a Nomad ZEN Ver 2.0 USB Does any one know where i CAN (BUY ONE) tHANKS zENGIG

  • My Motherboard is dead :(

    Hi guys: i need an explanation for this.... i tryed to install a new optical drive on my G4 and when take out the IDE cable (of course the computer was shutdown and disconnected). installed the new one, and now my mac doesn't start up . The dimmer fr

  • Model e51 problem in restoring data from old 2GB t...

    i am using nokia e51 last 1year its working fine.i would like to upgrade my memory from 2 GB to 4GB and i bought it from nokia orginal accessories.before upgrading my memory card i made backup with nokia pc suit the backup also made perfectly.then i