Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to print pdf file with layers
Forum Updated to NodeBB v4.3 + New Features

How to print pdf file with layers

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 525 Views 2 Watching
  • 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.
  • B Offline
    B Offline
    balazsati
    wrote on last edited by
    #1

    Hi!

    Can I add my elements to a pdf file sorted to layers? I want to specify each layer's name and visibility? Is it possible somehow?
    Thanks in advance,

    Attila

    artwawA 1 Reply Last reply
    0
    • B balazsati

      Hi!

      Can I add my elements to a pdf file sorted to layers? I want to specify each layer's name and visibility? Is it possible somehow?
      Thanks in advance,

      Attila

      artwawA Offline
      artwawA Offline
      artwaw
      wrote on last edited by
      #2

      @balazsati You can't do that with Qt as far as I can tell. You could possibly achieve that by using 3rd party library with Qt bindings (poppler, QPdf) but not Qt alone.

      For more information please re-read.

      Kind Regards,
      Artur

      B 1 Reply Last reply
      2
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi
        Layers came with PDF version 1.5. PDF and more formally known as Optional Content Groups (OCG) and as far as i know poppler supports it
        https://github.com/davidben/poppler/blob/master/poppler/OptionalContent.cc
        But i never tried it.

        1 Reply Last reply
        2
        • artwawA artwaw

          @balazsati You can't do that with Qt as far as I can tell. You could possibly achieve that by using 3rd party library with Qt bindings (poppler, QPdf) but not Qt alone.

          B Offline
          B Offline
          balazsati
          wrote on last edited by
          #4

          @artwaw
          Thanks, so that's why I did not find anything. Maybe I will try opendesign's solution.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved