test/automated in combine_pdf-0.2.30 vs test/automated in combine_pdf-0.2.31

- old
+ new

@@ -26,19 +26,20 @@ pdf = CombinePDF.load './Ruby/test pdfs/names_go_haywire_0.pdf' pdf << CombinePDF.load('./Ruby/test pdfs/names_go_haywire_1.pdf') pdf.save '04_check_view_and_names_reference.pdf' -str = IO.binread './Ruby/test pdfs/outlines/self_merge_err.pdf' pdf = CombinePDF.load('./Ruby/test pdfs/outlines/self_merge_err.pdf') +pdf.save '05_x1_scribus_test.pdf' +pdf = CombinePDF.load('./Ruby/test pdfs/outlines/self_merge_err.pdf') pdf << CombinePDF.load('./Ruby/test pdfs/outlines/self_merge_err.pdf') -pdf.save '05_scribus_test.pdf' +pdf.save '05_x2_scribus_test.pdf' # pdf = CombinePDF.load "./Ruby/test pdfs/named_dest.pdf";nil # pdf.save '05_check_named_dest_links.pdf' # this will take a while # pdf = CombinePDF.load "./Ruby/test pdfs/named_dest.pdf";nil -# pdf << CombinePDF.load("./Ruby/test pdfs/named_dest.pdf");nil -# pdf.save '05_1_check_named_dest_links.pdf' # never ends... :-( +pdf << CombinePDF.load('./Ruby/test pdfs/named_dest.pdf'); nil +pdf.save '05_1_timeless_check_named_dest_links.pdf' # never ends... :-( pdf = CombinePDF.load './Ruby/test pdfs/outline_small.pdf' pdf << CombinePDF.load('./Ruby/test pdfs/outline_small.pdf') pdf.save '06_check_links_to_second_copy.pdf' @@ -53,9 +54,20 @@ CombinePDF.load("./Ruby/test\ pdfs/Scribus-unknown_err.pdf").save '08_1-unknown-err-empty-str.pdf' CombinePDF.load("./Ruby/test\ pdfs/Scribus-unknown_err2.pdf").save '08_2-unknown-err-empty-str.pdf' CombinePDF.load("./Ruby/test\ pdfs/Scribus-unknown_err3.pdf").save '08_3-unknown-err-empty-str.pdf' CombinePDF.load("/Users/2Be/Ruby/test\ pdfs/nil_object.pdf").save('09_nil_in_parsed_array.pdf') + +require 'prawn' +IO.binwrite '10_prawn.pdf', (Prawn::Document.new { text 'Hello World!' }).render +page = CombinePDF.parse((Prawn::Document.new { text 'Hello World!' }).render) +pdf = CombinePDF.new +pdf << page +pdf.save '10_parsed_from_prawn.pdf' +pdf = CombinePDF.new +pdf << page << page +pdf.save('10_AcrobatReader_is_unique_page.pdf') + # unify = [ # "./Ruby/test\ pdfs/AESv2\ encrypted.pdf", # "./Ruby/test\ pdfs/data-in-comment.pdf", # "./Ruby/test\ pdfs/file_name.pdf", # "./Ruby/test\ pdfs/garbage_after_eof.pdf",