The new NodeBox forum is live! Everything from support.nodebox.net moved here: sign in with the same email to pick up your old posts. Something not working? Write to forum-support@nodebox.net.

NodeBox 3From the old forum

Export to PDF - then white rectangle?

1 reply Last reply

  1. I can now enjoy experimenting with generative art in my illustrations but I've experienced difficulty getting immediate results with other applications - until I encountered Nodebox. I think this is a great tool for producing beautiful design in so many forms. Thanks for developing such a great tool for graphic artists.

    However I have actually encountered a few problems and I'm wondering if someone could perhaps help with finding a solution? When exporting to a PDF (or even a PNG) I often find that the exported PDF is just a small, white rectangle.

    Image Name

    I'm duplicating some SVG files around some circular paths using the 'Shape on Path' node. Now sometimes I find I can export smaller groups of nodes but with this particular composition I have tried double clicking various 'Combine' nodes around the network structure and I have 'Set Rendered' through the right mouse button on each 'Combine' node but I can't get this to export. Even when I try to export it as a PNG file I get an error screen which contains the text below.

    java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
    at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
    at java.awt.image.BufferedImage.<init>(Unknown Source)
    at nodebox.graphics.ObjectsRenderer.createImage(Unknown Source)
    at nodebox.graphics.ObjectsRenderer.render(Unknown Source)
    at nodebox.client.NodeBoxDocument.exportToFile(Unknown Source)
    at nodebox.client.NodeBoxDocument.exportToFile(Unknown Source)
    at nodebox.client.NodeBoxDocument.doExport(Unknown Source)
    at nodebox.client.NodeBoxMenuBar$ExportAction.actionPerformed(Unknown Source)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.AbstractButton.doClick(Unknown Source)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$200(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

    Copy link
  2. NodeBox team

    Hi,

    Perhaps your composition is way too big, and you only see the middle?

    You can set the canvas width and height in File > Document Properties. Furthermore, you can turn on canvas bounds to preview which part is going to be exported. (Make sure you have the latest version of NodeBox since we recently added this feature)

    Best,

    F

    Copy link

Know something that helps?

Sign in with your email address to reply. No password needed.

Sign in to reply