Inkscape.org
Beyond the Basics Inkscape 1.4 beta - in save as PDF, only first 3 pages saved as PDF
  1. #1
    Royce Royce @roycejp
    *

    Hi,

    I created a file of 16 pages in v 1.4 beta.

    When I try 'save a copy -> PDF' I get the message box 'PDF could not be saved'.
    When I check, I see that the PDF file was created, but only the 1st 3 pages are saved.

    Is there a solution, or is this a bug ?

    I am attaching both the svg and the pdf file

    EDIT:

    I reverted to 1.32 and got this same issue.

    Is there a problem with my file, or is there a page limitation ?

     

    Thank you!

    Royce

    Mixer Gui Outline
  2. #2
    Tyler Durden Tyler Durden @TylerDurden

    I'd try File>Export>PDF

  3. #3
    Royce Royce @roycejp

    Hi Tyler,

    Thanks for your reply.

    However, no luck.

    This time I get 'Couldn not export ....'

    Did it work for you ?

    Thanks,

    --Royce

  4. #4
    Royce Royce @roycejp

    Hi,

    Can anyone try this with my attached svg ?

    Please let me know why I cannot produce a pdf ?

    Is there a known bug in the PDF generation of multipage files ?

    Thanks,

    Royce

  5. #5
    David248 David248 @David248
    *

    Hello

    There were ghost pages of no size, some other tiny pages.

    To spot them, I checked every page with page tool, gave it a name (field in control bar, next to the modify order of page arrows) : so on canvas their tags did display their names.

    Then I opened xml editor, expanded sodipodi:namedviews to spot which pages had no inkscape:label attribute and deleted them (clicked on delete node in xml editor).

    As I still had issues exporting to pdf, I rearranged the pages with page tool to leave a gap between them. Some buttons did not follow, I replaced them (I hope I didn't mistakes).

    Now it works...

    Mixer Gui Outline Modified
  6. #6
    Tyler Durden Tyler Durden @TylerDurden

    Agree.

     

  7. #7
    Royce Royce @roycejp

    David,

    Thank you so much for your effort.

    I don't quite understand what I did wrong.

    I haven't a clue about these ghost pages, or the XML stuff..

    How/When did these ghost/zero-length pages get added ?

    As you mentioned, is it to do with the gaps between the pages ?

    Could you please attach the modified SVG file so I can compare ?

    Could you please explain how to avoid such errors in my future files?

    Thanks again.

    Royce

     

  8. #8
    Tyler Durden Tyler Durden @TylerDurden
    *

    The document can also be fixed by using the page selector in the status bar to navigate to a duff page (e.g. pg3), making an 800 x 400 rectangle somewhere on the canvas and using Ctrl+Shift+R to resize the page. Repeat.

     

    Inkscape 20240731082628
  9. #9
    David248 David248 @David248
    *

    I did reproduce the issue you had encountered

    Use page tool, click on plus icon (left of control bar) and click on canvas with a very slight drag. This creates tiny pages, some may have no height or with (two of yours were 0x0 pixels).

    If you try to export such a ghost page, you get an error message.

     

  10. #10
    David248 David248 @David248
    *

    David,

    roycejp

    I haven't a clue about these ghost pages, or the XML stuff.

    svg files are actually xml files. Inkscape reads theses xml files, and it's graphic interface allows you to modify theses files without having to code in xml.

    In inkscape, xml editor (ctrl + shift + X) allows you to see xml code (in a simplified display : you could also open your svg file with notepad and see the difference).

    roycejp

    How/When did these ghost/zero-length pages get added ?

    See answer above.

    roycejp

    As you mentioned, is it to do with the gaps between the pages ?

    I don't think, perhaps was I messed up moving the pages and multiple - trying to export (*). I will retry.

    EDIT : I confirm the issue comes from ghost pages, I retried both using xml editor method and Tyler's method using status bar dropdown to select pages and page tool to remove the problematic ones : it works with only removing ghost pages.

    (*) I must have tried to replace an already opened pdf file.

    roycejp

    Could you please attach the modified SVG file so I can compare ?

    Already done (the svg file is with the text, not on paperclip icon).

     

     

     

  11. #11
    Royce Royce @roycejp

    Tyler and David,

    Thanks a ton for your kind help and direction.
    Now I know what to look for in future! :)

    Some kind of clue in the 'Could-not-create-PDF" message box as to what went wrong (Like "Warning: Zero Area pages found" etc) would be very helpful.

    Thanks again,

    Royce.

     

  12. #12
    David248 David248 @David248
    roycejp

    Some kind of clue in the 'Could-not-create-PDF" message box as to what went wrong (Like "Warning: Zero Area pages found" etc) would be very helpful.

    I agree.

    Notice that, export panel was already displaying too many pages and some strange ones (see post #2 on Tyler's screenshot images 3, 5 and 10).

    Tyler's advice in post#6 is also super-useful to spot mistakes when creating pages.

Inkscape Inkscape.org Inkscape Forum Beyond the Basics Inkscape 1.4 beta - in save as PDF, only first 3 pages saved as PDF