Specifying page size using pdfexport(​)

I have been trying to specify a specific page size for a PDF.  I have figured out how to use the picratio and other variables to change the TDR within DD.  However, the PDFexport ignores the printwidth setting and always uses 8.5x11.
I was able to manually change the page size by printing to the "diadem pdf printer" but i need scripted solution.
Is there a way to use the picprint and "printname" variable to specify a page size?
something like
printname = "diadem pdf printer,LPT1,11x17"
Here is what doesn't work
dim w,hPicInScal = False ' relative positioningPicFrame = False ' we'll handle the frame ourselvesw=11h=17picratio= h/wPicwidthInScal = w-0.5PicHeightInScal = h-0.35PrintTopMarg = 0.17 ' top page pagePrintLeftMarg = 0.25 ' left page marginPrintWidth = w ' page widthCALL PICpdfexport(PATH) 
Jim West

I still can't get this to work.  I have 11.1 beta.  I have copied the script from prior posts.
Diadem shows the correctly sized report but when the PDF export is made; the report is jammed into 8.5x11.  Sample attached
I have adobe reader 9.1.1
jim
dim w,hPicInScal = False ' relative positioningPicFrame = False ' we'll handle the frame ourselvesw=28h=11picratio= h/wPicwidthInScal = w-0.5PicHeightInScal = h-0.35PrintTopMarg = 0.17 ' top page pagePrintLeftMarg = 0.25 ' left page marginPrintWidth = w ' page width call PrintMaxScaleCALL PICUPDATE CALL PICpdfexport("C:\Development\Spartan\www\temp\test3.pdf")
Attachments:
test3.pdf ‏212 KB
diadem screenshot.doc ‏161 KB

Similar Messages

  • Specify page size for webi reports as pdf

    Hi,
    Is it posible for a webi report generated as pdf, to specify the page size used inside that pdf ?
    Let's say I want that all pages of that pdf to have page size=A5.
    Is this possible using bo sdk ?
    Thank you.

    Hi Durga,
    log file shows Error  "Continue parsing report event"and/foldername/ SUBF/file name.pdf  means failed
    Can you come accross any such error.
    Regards,
    Ganesh Bothe

  • Problem with too small page size using Java 2D Printing API.

    Hello,
    I have problem with resolution of printer using Java 2D Printing API. Despite my printer has 600 x 600 DPI, inside java.awt.print.Printable.print(Graphics, PageFormat, int) I receive page format with 600 x 840 page size.
    I have tried to set resolution using javax.print.attribute.PrintRequestAttributeSetand javax.print.attribute.standard.PrinterResolution, but with no result.
    Can anybody solve this problem?
    Regards,
    Karl.

    600 x 840 is a Point value; Point is defined as 1/72nd of an inch. Printers do have much higher DPI than this, but I believe that this DPI has to do with richness of the printed image, not an actual ability to color with that level of resolution. You might want to try calling zoom on your Graphics2D object. Otherwise, I don't know what else you can try.

  • Epson 3800 Custom page sizes using yosemite

    I upgraded to Mac OS yosemite a few weeks ago and PS CS5 crashes when I open the custom page size dialog. I've reinstall PS and made sure my driver was the latest version. Reinstalled the driver as well. This appears to be a PS problem because I can use this printer in other apps to create a custom page size. At least the problem the interaction between Mac OS 10.10, Photoshop and the driver. Any ideas? Is this a known problem?

    "One more thing" as SJ liked to say...  Yosemite has been tested with CS6, so why not download a trial and see if it plays well with your system. For CS5 owners, it's a $200 upgrade and probably affordable in your case.
    Get it here:
    http://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html
    Gene

  • Problem with page size using Illustrator CS5

    I am using Adobe Illustrator CS5. I have created a multi-layered document that is 8.5 x 11 inches. In looking at the document on the screen, it looks like the proper size, and if I were to print it out, it looks correct. However, when I export it as a TIF file, the size of the document has changed to be much wider than 8.5 inches. What is the problem?

    This is a bit off topic, but if you are sending this to a commercial printer, a PDF would be better. If you need to send a tiff for some reason, don't forget to include the bleed.

  • Get page size using vuebean etc api

    Hi
    We are trying to scale markup entities to a fixed size and we can use getPageExtents() but this does not appear to be in real world coordinates eg 11.7" by 8.3".
    Please advise how scaling works and where we can get the scale factors in the api. There seem to be lots of api calls that might do this!
    Thanks.

    Hi Paul,
    There are thee types of coordinates used by AutoVue:
    1) World coordinates: these are the coordinate space that the drawing or model is represented in the file format.
    2) Device coordinates: these are pixel coordinates relative to the client's rendering area.
    3) Physical coordinates: these are in mm or inches and are displayed in the AutoVue UI (status bar, measure tool and properties dialog).
    I have shown you how to convert between the first two in my previous reply.
    To convert between world and phyical coordinates, you could use the PAN_CtlFileInfo.Ins class (insertion information).
    Multiply by VueBean.getFileInfo().getInsertion().scale and possibly subtract the offset too (before or after the multiplication, I didn't verify).
    The result will be in physical coordinates that are in the units and can be looked up in the Constants class.
    For example, PDF world coordinates are usually in the thousands, but show as inches (8.5x11) in the UI.
    I hope this helps.
    Thanks
    George

  • Custom PDF page size errors

    When printing to PDF to a custom size of 36x85 or 85x36 the adobe PDF writer doesnt do anything. THis happens from any program I try. If I Select a size of 82x36 the PDF creator with create the file. I can even print 92 x 92 with no issues, just not anything that is 36 x anything greater then 82 inches. This is being done in Windows 7 64 and I cant duplicate this issue 100% of the time in versions 9 and X standard on multiple machines.
    The interesting thing is that if i try to print a PDF from within Acrobat 9 or X, it will print 32 x 82 fine, but when printing 85x36 or anything 36 x 82 or greater, it gives me the following errors:
    "The document could not be printed"
    "There were no pages selected to print"
    So my question is, why cant i print to this size? Is there a ratio limitaiton to printing custom page sizes using the Adobe PDF printer?
    Any assistance anyone can give me with thsi would be very much appreciated.
    --Update--
    If I try this same size on a windows XP 32bit machine with Acrobat X Standard it works fine. Not sure what the issue is with Windows 7 64 and Acrobat 9/X in regards to custom page sizes.

    Not sure if you ever found a cause to this but I wanted to post my solution here because I've seen may people posting about the same issue and the solution/workaround that you came up with is the exact configuration that causes the  error for me.
    After looking through several forums, nothing worked. I'm running XP 32-bit with both Acrobat X Pro AcroReader X trying to plot to an HP DesignJet 800ps. I had never had any problems printing with Acrobat X until our IT dept. upgraded the print server from Win2003 server to 2008R2. I don't believe there were any new drivers installed for the plotter as it's an older model but the hardware/OS upgrade changed how we installed drivers. The technical details are beyond me.
    So suddenly, for whatever reason, I'm now getting this no pages selected error. After unsuccessfuly trying several solutions that others reported to work for them I was determined to figure out why it wouldn't work for me.
    What I found is probably just another in the handful of workarounds but I'm posting it here just in case it also works for you. In the print dialogue, click the Advanced (print setup) button. In the Output tab(?)/window(?)/area there is a check box default checked on for Use Maximum Available JPEG2000 Image Resolution. I uncheck this box. Back in the main print dialogue at the bottom right there is a Page Setup... button. In there I changed the page orientation to Landscape to match the orientation of my document. I had already specified this in the printer properties window, and in the main print dialogue it was set to Auto Portrait/Landscape (which oddly if I select just landscape it crowds the job to the top left of the page).
    Like I said, these were the only two things I changed and it worked so if you're still reading this hopefully it will solve your problem too.

  • Defining page size in XML Publisher

    Can we define page size using XML Publisher APIs.
    We have a problem where a single RTF template will be used for different countries and depending upon the country, the report needs to be printed on Letter or A4 or anything.
    I could find a parameter for Orientation but none for page size.
    Is there something we can do for defining page size or we need to rely on the printer setup.
    Regards,
    Satrajit

    to which column do u wnat to calculate goto that column
    <?add-page-total:variable_name;Column_name?>
    ex: <?add-page-total:inv;INVOICE_AMOUNT?>
    finally goto footer write
    <?show-page-total:inv;"999G990D00"?>

  • [JS CS5]How to get Custom Page size

    I've been searching the answer of this simple question but looking no way around.
    I have an InDesign document with different page size e.g. left page width is 621 pt. and on the same document right page width is 837 pt.
    Now I need to get the width of pages using script but app.documentPreferences.pageWidth return standard document preset size(621 pt.) not the custom page size.
    Does any one have the Idea to get custom page size using script.
    Thanks in advance
    Mac

    Mac,
    as documentation is showing there are some new properties of "page" since InDesign CS5.
    Among those is:
    bounds    Array of Measurement Unit (Number or String)    readonly    The bounds of the Page, in the format [y1, x1, y2, x2].
    So:
    myPage.bounds
    and pageWidth of the documentPreferences might be:
    myPage.bounds[3]-myPage.bounds[1]
    unless  myPage is transformed (e.g. rotated and/or sheared and/or scaled) with:
    myPage.transform()
    void transform (in: CoordinateSpaces, from: varies, withMatrix: varies[, replacingCurrent: varies][, consideringRulerUnits: bool=false])
    Transform the page item.
    var d = app.activeDocument;
    var myPage = d.pages[0];
    var oldPB = myPage.bounds;
    var rAngle = -45;
    var sAngle = 40;
    var myTransformationMatrix1 = app.transformationMatrices.add({counterclockwiseRotationAngle:rAngle});
    myPage.transform(CoordinateSpaces.INNER_COORDINATES, AnchorPoint.CENTER_ANCHOR, myTransformationMatrix1);
    var myTransformationMatrix2 = app.transformationMatrices.add({clockwiseShearAngle:sAngle});
    myPage.transform(CoordinateSpaces.INNER_COORDINATES, AnchorPoint.CENTER_ANCHOR, myTransformationMatrix2);
    var newPB = myPage.bounds;
    $.writeln(oldPB);
    $.writeln(newPB);
    Now oldPB and newPB will differ a lot.
    So, the question remains: what is a reliable way to show if the myPage was or was not transformed against documentPreferences.pageWidth or if  myPage is of rectangular shape at all. See the possibility of adding a sheer angle to the transformation matrix. Also see screen shot:
    Transform_Page_CS5.png
    Uwe

  • Need Help Programmatically setting Page Size for printing to Adobe PDF

    We are upgrading from Adobe 5 to Adobe 9.  In Adobe 5, we set a few parameters in the __pdf.ini file to create a document with a specific Page Size.  For Example:
    [Acrobat PDFWriter]
    PDFFileName=
    bDocInfo=0
    Orient=1
    bExecViewer=0
    cpmarginwhole=18
    cpwidepart=0
    cpwidewhole=612
    cpheightpart=0
    cpheightwhole=792
    Paper=0
    Since upgrading to Adobe 9.2, this no longer appears to work.  I have also tried adding these values to the following Registry Locations with no luck:
    HKCU\Software\Adobe\Acrobat PDFWrite
    and
    HKCU\Software\Adobe\Acrobat Distiller\PrinterJobControl
    Is it still possible to create a custom page size using this method?  Or am I going to have to do that in a different way?

    Bill, thanks for the quick response.  However, we generate many forms on a daily basis with different page size requirements.  The way this was accomplished through Adobe PDFWriter was by setting the various parameters in the __pdf.ini file for the Document that we are generating.  I believe we have about 7 different page sizes that we generate.

  • Custom landscape page size - - content squashed portrait

    I'm trying to create a PDF for an MS PowerPoint file with a very large page size, 46" x 36" (landscape). I'm using Acrobat 7.0 on Windows XP.
    In keeping with guidelines at www.adobeforums.com/webx/.3bbad46c/0 I selected the printer properties and created a new form with the desired values, entering the dimensions as if it were portrait, 46" height and 36" width. I also created a custom Adobe page size using the same dimensions. Under "Layout" I chose "landscape."
    The output file has the correct dimensions with a landscape orientation. However, the content is squashed onto the left side of the page with a very wide left margin, as if Acrobat were trying to fit the content into portrait-oriented dimensions. Words are overwritten on top of one another and it looks horrible.
    Just to check, I went back into the form preferences and the page size and individually changed first one and then the other to have the correct landscape height and width. Neither approach worked.
    Any thoughts?

    Oops, sorry, looks like I'm in the wrong forum.

  • PDF custom landscape page size - - content squashed portrait

    I'm trying to create a PDF for an MS PowerPoint file with a very large page size, 46" x 36" (landscape). I'm using Acrobat 7.0 on Windows XP.
    In keeping with guidelines at www.adobeforums.com/webx/.3bbad46c/0 I selected the printer properties and created a new form with the desired values, entering the dimensions as if it were portrait, 46" height and 36" width. I also created a custom Adobe page size using the same dimensions. Under "Layout" I chose "landscape."
    The output file has the correct dimensions with a landscape orientation. However, the content is squashed onto the left side of the page with a very wide left margin, as if Acrobat were trying to fit the content into portrait-oriented dimensions. Words are overwritten on top of one another and it looks horrible.
    Just to check, I went back into the form preferences and the page size and individually changed first one and then the other to have the correct landscape height and width. Neither approach worked.
    Any thoughts?

    Oops, sorry, looks like I'm in the wrong forum.

  • Wrong page size

    I'm trying to print a Word 2002 document to PDF to prepare it for printing (it's the text of a book that will be printed by Lightning Source Inc). Ideally this document would be laid out in InDesign, but this is how the client wants it done. The page size is 5.83 x 8.27 inches. It's set up that way in Word and I have set that as the paper size in the printer properties of Adobe PDF. But when it prints, the page size comes out as 5.83 x 8.26 (in File/Properties). I'm concerned that the printer might reject the PDF because the dimensions are off. How can I get Acrobat (ver. 9 professional) to output the specified page size?

    Hi,
    Please follow these steps
    Start>Devices and printers
    Do a right click on the printer Icon
    Printing Preferences
    Paper Size: Select letter from the drop down
    Paper Source: Automatically select
    Paper Type: select Plain from the drop down
    Apply>OK
    try printing again
    Although I am an HP employee, I am speaking for myself and not for HP.
    *Say thanks by clicking the "Kudos! Star" which is on the left*
    Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue.

  • Photobook Page Size

    Hello,
    I posted October about photobook issues, and now I think I understand the problem better.
    The photobook I created in October was set up as a 10.25x9, not 12x12 as I originally thought. But, the photobook I order came out printed funny, with the pages cropped off. I ended up keeping the books, but I was not happy with the result.
    However, I just set up a new photobook for another project, and I now understand why my pictures were cut off. The first page of the photobook says 10.25x9, but the rest of the pages say 20x 9!!  SHouldn't it be 20.5x9?  That would explain why the pages were cut short in my previous photobook.
    Also, Photoshop Elements 6 will not let me set up a page size using the create tab. I can't get it to work and the "help" is no help at all.
    Look, I am very frustrated with Photoshop elements. I spent money on this product, and it's turning out badly.
    Mary

    Hi guys,
    Is there someone I can call directly about this problem?  Customer service maybe?  One of my issues is my Mac (with the Photoshop Elements) is at home and I work during the day. But, I could arrange a time to speak with someone.
    Mary

  • Determining Page Size

    Hi
    I am trying to determine the page size of pages in my portal, and am looking for an easy-to-use and reliable tool. The reason for this is so that I can fine tune my BI templates to be as small as possible, which should make for a faster user response.
    I have tried running the pages in Firefox with the web developer toolbar, and get quite a large number (variable selection screen is 255kB), made up primarly of javascript files (205kB).
    If I look at Page Info (from Firefox), it tells me around 3KB.
    Internet Explorer doesn't seem able to tell me the page size (using the right-click menu)
    IE's developer toolbar doesn't give me an option to see page size.
    I can't use one of the online tools as the site is not available to the outside world.
    All I'm looking for is a free, offline tool that I can use that analyses a pages and tells me how big the page is, and maybe even some detail like the size of individual elements, then I can see if it's worth me trying to reduce certain things.
    Cheers,
    Andrew

    Hi
    Firebug looks great, and is giving me some nice data.
    All I have to do now is change my BI web template so that it works in Firefox ... seems like using images that are pulled from the MIME repository don't have the correct HTML rendered in Firefox
    Cheers,
    Andrew

Maybe you are looking for