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 519 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 13 Jan 2020, 14:53 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

    A 1 Reply Last reply 13 Jan 2020, 15:02
    0
    • B balazsati
      13 Jan 2020, 14:53

      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

      A Offline
      A Offline
      artwaw
      wrote on 13 Jan 2020, 15:02 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 14 Jan 2020, 07:34
      2
      • M Offline
        M Offline
        mrjj
        Lifetime Qt Champion
        wrote on 13 Jan 2020, 16:27 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
        • A artwaw
          13 Jan 2020, 15:02

          @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 14 Jan 2020, 07:34 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

          1/4

          13 Jan 2020, 14:53

          • Login

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