JSCAD User Group

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    V2 Unfolder complete, multipage pdf creation from its 2d output

    Design Discussions
    3
    9
    848
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • gilboonet
      gilboonet last edited by gilboonet

      Hello, my V2 Unfolder is now complete. (the project is here)
      Here's what it does. (If your browser is not in french you will have english version)
      You can enter the name of a 3d file that you have into the project's directory, then render to see it and it's dimensions. Then you can change scale and when it's ok you can check "unfold" and render (uncheck show volume and show dimensions to be able to export to .dxf).
      Capture d’écran de 2022-01-12 09-47-55.png
      To make a multipage PDF of the output, I'm importing it into Inkscape, change colors and styles when needed, then change document dimensions in order to have it containing all pages (on my example it's A4 x 12). Then I save a copy of PDF format. And I use a console command to make a multipage PDF of it :
      pdfposter -p 12x1a4 myOnePage.pdf multipage.pdf
      Capture d’écran de 2022-01-12 09-51-30.png

      I only tested on linux, but the same can be done on windows or mac provided pdfposter is installed. Maybe this pdf creation process could be useful to other users.

      hrgdavor 1 Reply Last reply Reply Quote 1
      • hrgdavor
        hrgdavor @gilboonet last edited by

        @gilboonet that is definitely something worth considering either as part of jscad or an addon library. I think we will have better idea after I have some time to cooperate with you on your project. It is definitely an interesting use-case, and a real project will give much needed insight on how to proceed with it.

        1 Reply Last reply Reply Quote 0
        • gilboonet
          gilboonet @z3dev last edited by

          @z3dev Yes, it works, 3 fingers to pan, thank you. Another problem is that on the smartphone dxf is not a format that can be handled (to print especially). But anyway most users will run on pc.

          1 Reply Last reply Reply Quote 0
          • z3dev
            z3dev last edited by

            Pretty much every mobile phone / tablet uses…

            One finger to rotate

            Two fingers to zoom in and out

            Three fingers to position / pan

            gilboonet 1 Reply Last reply Reply Quote 0
            • gilboonet
              gilboonet @z3dev last edited by

              @z3dev I'm not aware of gestures, I almost never use my smartphone. Do you know what is the gesture to move the camera ? I only know those for zoom and rotate. For iPhone I cannot say as it a user who tried it on its phone, apparently with safari, but the link didn't proceed.

              1 Reply Last reply Reply Quote 0
              • z3dev
                z3dev last edited by

                @gilboonet there are two and three finger gestures for tablets / phones. If those don’t work then let us know.

                iPhone … like Safari browser?

                gilboonet 1 Reply Last reply Reply Quote 0
                • gilboonet
                  gilboonet @gilboonet last edited by gilboonet

                  Apparently it doesn't run on iPhone (by clicking the link that opens jscad with mono-file version), but I just tested on an Android Smartphone and it works nicely, even if i didn't find how to move the 3d render (on pc it's shift + mouse move).
                  Screenshot_20220118-143646.png

                  1 Reply Last reply Reply Quote 0
                  • gilboonet
                    gilboonet @hrgdavor last edited by

                    @hrgdavor If 2d output could be directly exported to multipage pdd it would be really nice, I'm having people trying to use the script on iPhone 11 and it's not easy on smartphone to easily view a dxf file and convert it to pdf.

                    gilboonet hrgdavor 2 Replies Last reply Reply Quote 0
                    • hrgdavor
                      hrgdavor @gilboonet last edited by

                      @gilboonet there is even a possibility to do this via JS PDF library

                      gilboonet 1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Powered by NodeBB | Contributors