Change the page size, unexpected behavior, CC

Hi, having a problem with the changes after the change of the page. In a nutshell if I get cardboard PMPoint transformation (0,0) before a change of page size, the result is exactly as planned, the origin of the page in the editing table. After I change the page size using kSetPageSetupPrefsCmdBoss and run the transformation even recalibrated value is identical before changing the page size.

Here's some quick code and output to illustrate. PageSizing:; DoYourThing() called and made the intial processing, prints the output in InspectTransformation(), then call ChangePageSize() and remembers InspectTransformation().

Sub PageSizing: DoYourThing()

{

IDocument* theFrontDoc = Utils<ILayoutUIUtils> ()->GetFrontDocument();

if (theFrontDoc is nil) { cost < < "Need a doc." } < < endl; return; }

fDoc = theFrontDoc;

GetPageSpreadRefs()1); Download the UIDRef from the 1st page and spread

if (fPageRef == UIDRef:gNull) { cost < < "Invalid Page" UIDRef. < < endl;} return; }

if (fSpreadRef == UIDRef:gNull) { cost < < "Invalid spread UIDRef." } < < endl; return; }

cost < < "before changing the size of the Page." << ENDL ;

InspectTranforms();

bool16 sizeChangeResult = ChangePageSize();

if (sizeChangeResult) {

cost < < "after changing the size of the Page." << ENDL ;

InspectTranforms();

}

}

Sub PageSizing: InspectTranforms()

{

do {

PMPoint leftTopPage (0, 0); / / Page coords

InterfacePtr<IGeometry> pageGeo (fPageRef UseDefaultIID(());

PMMatrix page2Pb =:pageGeo InnerToPasteboardMatrix();

PMRect pageBoundsInPasteboard = pageGeo->GetStrokeBoundingBox(page2Pb);

PMPoint pageOriginInPasteboard is pageBoundsInPasteboard. LeftTop ();

Helper:PrintPoint(pageOriginInPasteboard, 'Origin of the dough pension Page.');

InterfacePtr<ITransform> pageTransform (fPageRef UseDefaultIID(());

PMPoint leftTopInPasteboard = leftTopPage;

        :: TransformInnerPointToPasteboard() pageTransform, & leftTopInPasteboard);

Helper:PrintPoint(leftTopInPasteboard, "transformed the point (0,0) in cardboard coords.") );

} while (kFalse);

}

bool16 PageSizing: ChangePageSize()

{

bool16 retval = kFalse;

do {

InterfacePtr<IPageSetupPrefs> docPrefs (fDoc->GetDocWorkSpace(), UseDefaultIID());

if (docPrefs is nil) { cost < < "Nile IPageSetupPrefs" < < endl;} Break; }

InterfacePtr<ICommand> pageSizeCmd (CmdUtils:kSetPageSetupPrefsCmdBossCreateCommand());

if (pageSizeCmd is nil) { cost < < 'No command' < < endl;} Break; }

InterfacePtr<IDocSetupCmdData> cmdData (pageSizeCmd IID_IDOCSETUPCMDDATA);

if (cmdData is nil) { cost < < 'Data command nothingness' < < endl;} Break; }

PMPageSize currPgSz = docPrefs->GetPageSizePref(); / / 612, 792

PMPageSize newPgSz (currPgSz. OutputWidth() + 50, currPgSz. OutputHeight () + 50);

DocPageBinding link = Utils<ILayoutUtils> ()->GetDocumentPageBinding(:GetUIDRef(fDoc));

cmdData->SetDocSetupCmdData(:GetUIDRef(fDoc),)

newPgSz,

docPrefs->GetNumPagesPref(en)

docPrefs->GetPagesPerSpreadPref(en)

docPrefs->GetWideOrientationPref(en)

Liaison);

Error code ec = pageSizeCmd ProcessCommand() CmdUtils:);

retval = (ec == kSuccess);

if (! retval) { cost < < "Resize the page command failed." } < < endl;}

} while (kFalse);

Return retval;

}

The output

consoleOutput.png

As you can see the origin of the page is different after the order of page size, but the transformation returns the same value of 0.0.

Am I missing something about transformations or the order of page size?

Thanks for any help. Mike

Hello Mike,.

you was not assuming that the upper left corner of a page in coordinates (0, 0) pasteborad. That is right. But you assuming that the upper left corner of a page in internal coordinates is (0, 0). And it is wrong. The origin of the page in internal coordinates is (0, 0) after resizing.

Markus

Tags: InDesign

Similar Questions

  • Change the page size and text in Firefox 35.0.1

    I had a small red P at the top right of Firefox that changed the page size and the fonts that I lost after a reset: How do I get it back?

    Do you mean this extension?

    You can check the "Old data Firefox" folder on the desktop to see what extensions you previously had.

  • Change the page size - grayed out of boxes

    I'm changing the page size of the pages within a document. Apparently, you're supposed to select the pages in the Pages panel and then change the height and width of the Panel settings. My height and width boxes are grayed out. What have I done wrong?

    Your screenshot shows you the active Selection (the black arrow) tool, not the Page tool (the third tool from above).

  • How can I change the page size of a pdf document so that I can check on my iphone more clearly?

    How can I change the page size of a pdf document so that I can check on my iphone more clearly?

    This is way beyond what can be done with PDF, except by copying the text and make a new document in Word or something.

    That said, Adobe Reader on Windows may display the text AS IF the PDF file has been divided. It's the text reformatting. It may be possible in Reader for iPhone, you can try the player for ios forum.

  • Change the page size in a smaller format

    Hello

    We have some problems resizing of a PDF document to a smaller size of the page (e.g. A4).

    It seems that Adobe Acrobat Pro DC creates a PDF document with a page size that is larger than an A4 document in width.

    We have already tried the following things:

    • We printed out the PDF file to an A4 document with the Adobe PDF printer, but this causes all our form elements to disappear. 90% of all form elements are not available in the printed PDF file.
    • We tried to set the page size by using options like Te 'organise pages' = > 'set page boxes' = > "Change Page size". However, when we try to set the size of the page on the exact dimensions of an A4 document, we obtain the well known error "Page Size cannot be reduced".

    Finally, we used a trial version of MapSoft plugin for changed the size of the page of A4 document.

    It works, but in our view, this should be possible in Adobe without use of external plugins. If we have missed some sort of option in Adobe Acrobat Reader Pro DC?

    Thank you.

    P.S.: If the document does not have the exact size of A4 page, a part of the text does not fit into predefined on our template document boxes. In addition, the printed document alike on different printers if the A4 page size is not used.

    ontwikkelingd76021313 wrote:

    ...

    • We printed out the PDF file to an A4 document with the Adobe PDF printer, but this causes all our form elements to disappear. 90% of all form elements are not available in the printed PDF file.

    ...

    Print on the 'Adobe PDF' format will remove all form fields, links...

    The tool controls upstream allows you to change the size of the page.

  • Batch to change the page size of InDesign documents

    I have about 300 documents in InDesign (2014 cc, Mavericks) a page of various page sizes. Each page is wider than 4 inches and 4 inches larger than the content of the page. The content is in middle of the page - actually make a margin of 2 inches (but with no margin guides) around the content. What I need to do, is get the page of all documents will have to be a specific page size, 7,125 "x 9.75".

    I was able to accomplish this by putting all the docs in a book, make a master page 7,125 "x 9.75" on a doc, synchronize the other docs and then opening each doc and apply the master page. The last piece was a bit a lot of work and I would like to avoid it in the future.

    Could write a script that opens some InDesign documents (in or not in a book) and changes the various sizes of page to the necessary size? I've never written scripts before, so no idea if it's possible or how to do it.

    I put the following on another forum and got help, but it took that I have control over the creation of the original documentation. And I did not. "Is there a way to globally apply a master page to all pages of all documents in a book?

    Any help is greatly appreciated.

    Hello

    What is your requirement

    var myFolder = Folder.selectDialog("Select the Folder contains Indesign Files")
    
    var myFiles = myFolder.getFiles("*.indd")
    
    alert("Total Indesign Files: " + myFiles.length)
    
    for(i=0; i
    

    Concerning

    Siraj

  • Starting with HP Officejet 6600 and cannot change the page size

    Hello

    You have just purchased HP Officejet 6600 all-in-in-one and found that there not a duplexer, which is very very annoying! However, if I can just change the paper size, I can live with the disadvantage to the paper.  I have a Word document that is the flyer for our company, a document A4 which must be printed on A5 paper.  Old Canon printer I could make the A4 as an A5, but now I can't.

    Hope I explained the correct problem and the TIA for help.

    In my copy of Word 2007, I am able to evolve in A5 paper.

    Be sure to select A5 in 6600 preferences.

  • I want to resize the text in the Apple support pages WITHOUT changing the page size

    I spend a lot of time reading and learning on the Apple discussion forums, but all of a sudden my text size became too small. While I can easily adjust to the size of reading, which unfortunately also increases the size of the page and as a result I have to drag left and right pages to read continuously or click on the symbols... I'm trying Nosquint, but so far have not found the solution.

    There should really be a non-technical way of this operation and thus creating a permanent framework. All of my pages of BBC can be addressed via the parameters of 'content', but it does not affect Apple talk pages.

    There are two types of Zoom in Firefox; Text zoom and zoom on the Page.
    See for zoom text: https://support.mozilla.org/en-US/kb/font-size-and-zoom-increase-size-of-web-pages#w_how-to-only-change-the-size-of-the-text

  • Change the page size and get the error on the booklet. Why? Only in CS6...

    Why when we work with a material to many pages, and all pages have the same measure and change the size of each page (in file-> Document format), we can generate more booklets? I tested version CS5 and it worked perfectly in the version CS6 gives the error:

    "The active document uses multiple pages sizes. Booklet printing only works with documents that use consistent page size. »

    I checked all the pages and all have identical dimensions between them.

    Take a test.

    Open a new file with multiple pages. Try to create a booklet. Will work correctly. After that, go to file-> size and change the size of the pages page. Now try to create a booklet. Will give an error.

    I tested in a couple of Mac...

    Peter is right, that this problem is not being solved in the hotfix released today.

    I already signed in to the same bug and sent to engineering for a fix, waiting for a response from the well side!

    There is workaround as copy and paste the contents to a new file, but not a fix solution as if now.

  • How can I change the page size of an existing PDF?

    I have Adobe Acrobat XI Pro on my Mac under 10.6.

    How to resize an existing .pdf document which is 20 "x 40" up to 4 "x 8"?

    Thank you!

    Bob

    Print to a PDF file with this page size...

  • Change the page size to match an object

    Hello. If I bring in an object (such as a photo), is there a simple way to have the page dimensions correspond to the object?

    Currently I copy the dimensions of the photo, select the page tool, select the page and manually enter new dimensions.

    Thank you!

    There is no command in InDesign CS5/5.5 to have the dimensions of the page corresponds to an object. Of course, someone could probably develop a script...

  • change the page size second in 3 pages

    Hello

    I wonder, how do I change my second page 3 page double with ExtendScript size?

    (I'm trying to generate coverage with the spine)

    app.activeWindow.activeSpread.pages [1] .resize (CoordinateSpaces.innerCoordinates, AnchorPoint.centerAnchor, ResizeMethods.ADDING_CURRENT_DIMENSIONS_TO, [-1000, 0])

  • How can I change the paper size of the pdf file?

    I use Adobe Acrobat Reader X, but the paper size of the PDF file is larger than the 81/2 "x 11". I need to change the page size of the PDF file.

    Hi matthewc70309046,

    There is no option to change the Page size of a PDF document.

    Try to print to the Adobe PDF format, in the dialog box print, select Page layout-> size desired by you.

    Kind regards
    Nicos

  • The page size is wrong

    I spent the last 4 hours trying to figure out how to change the page size of 8 X 5 to 8 X 5.25.

    If you have to be a flippin genius ' to do this, then I don't think anything that adobe has offer me is worth paying for this frustration.

    Help!

    You can use the tool of cropping on a single page, all pages or a range of pages.

  • CS5 - export .jpg specify (or change) the Image size

    OK, we currently have 2 one configuration to print cards and templates for web maps. What we have since both cards are identical, except the size of the map, is to have a single model. Two of them are related to vector graphics of AI.

    Problem is to print card is

    Tel: 91.437 mm

    H: 53.338

    WebCard is

    W: 17.5 in.

    H: 10.208

    We first tried using the print card model that works well for our printer, but when download us on the web, that it turns out very pixelated, even when we have clarified the following preferences:

    for (var myCounter = 0; myCounter < myDocument.pages.length; myCounter ++) {}

    myPageName = myDocument.pages.item (myCounter) .name;

    app.jpegExportPreferences.jpegExportRange = ExportRangeOrAllPages.exportRange;

    app.jpegExportPreferences.jpegQuality = JPEGOptionsQuality.high;

    app.jpegExportPreferences.exportResolution = 128;

    app.jpegExportPreferences.pageString = myPageName;

    My guess is the size is much smaller, so what we had originally for web maps.

    _________________________________________________________________________________________

    Then we tried to use the card export for printing, and web but by downloading scal doesn't work properly on the printer, and they see the way of the card, because it's more size.

    Have you tried the following against the print template:

    var myDocument = app.documents.item (0);

    {with (myDocument.documentPreferences)}

    pageHeight = "17.5 in."

    pageWidth = "10.208 in."

    but this only changed the page size is not the image.

    Anyway to resize or specify a size for a full page not only .jpg image?

    Please help, thanks in advance,

    Joe

    Hello

    I'm not sure but maybe you can use a rectangle for the AI image, resize the rectangle and adjust proportionately the image inside
    hope this helps

    Eli

Maybe you are looking for

  • LINUX and satellite L20

    HelloI have a TOSHIBA Satellite L20 - 182 notebook (PSL2XE) and I want to change my OS from Windows to Ubuntu Linux.Unfortunately, I couldn't find a drivers for my laptop that runs on Ubuntu Linux. So my question is - where can I find the drivers for

  • Pavilion 15 bj000nh: very low wifi on the brand-new Pavilion 15 bj000nh

    Hello everyone, I have a problem with my new laptop purchased 15-bj000nh HP Pavilion, a few days ago.The wi - fi connection is too low, that if I keep the PC one meter away from router I get only 3-4 bars of 5 in the connection properties and if I go

  • Web of WhatsApp for ipad

    I have an Ipad 2 running version 9.2 of IOS. I use a lot of whatsapp and I prefer to send and receive messages via PC or Ipad instead of my Iphone. I can't use my Ipad because when I try to access the site via safari, it pops up a message stating: "W

  • Screen on 2760p Elitebook tablet mode orientation

    In the c:\windows\qlb directory, run the installer as administrator. After the reboot, the screen turns automatically

  • error code 80048820

    I think that it is after the publication this code that I started to have my problem. MyProblem, is that whenever I go to the computer, they tell me I have an update to install my problem is that it is always the same as one (windows vista service pa