Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion PDFNetPHP/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,17 @@
# Consult LICENSE.txt for licensing information.
#-----------------------------------------------------------------------------------------------------------------------

if(CMAKE_MAJOR_VERSION VERSION_EQUAL "4")
cmake_minimum_required(VERSION 3.10)
else()
cmake_minimum_required(VERSION 3.4)
endif()

if (APPLE)
set(CMAKE_OSX_ARCHITECTURES arm64 x86_64)
endif()

project(PDFNetPHP CXX)
cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)


find_program(PHP_CONFIG_EXECUTABLE NAMES php-config7 php-config5 php-config4 php-config)
Expand Down
11 changes: 10 additions & 1 deletion PDFNetRuby/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,17 @@
# Consult LICENSE.txt for licensing information.
#-----------------------------------------------------------------------------------------------------------------------

if(CMAKE_MAJOR_VERSION VERSION_EQUAL "4")
cmake_minimum_required(VERSION 3.10)
else()
cmake_minimum_required(VERSION 3.4)
endif()

if (APPLE)
set(CMAKE_OSX_ARCHITECTURES arm64 x86_64)
endif()

project(PDFNetRuby CXX)
cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)

# Checks the header and library directory of the current active ruby install
# This will respond to virtual enviroments
Expand Down
Empty file modified Samples/AdvancedImagingTest/PHP/RunTest.sh
100644 → 100755
Empty file.
Empty file modified Samples/AdvancedImagingTest/RUBY/RunTest.sh
100644 → 100755
Empty file.
Empty file modified Samples/BarcodeTest/PHP/RunTest.sh
100644 → 100755
Empty file.
Empty file modified Samples/BarcodeTest/RUBY/RunTest.sh
100644 → 100755
Empty file.
Empty file modified Samples/CAD2PDFTest/PHP/RunTest.sh
100644 → 100755
Empty file.
Empty file modified Samples/CAD2PDFTest/RUBY/RunTest.sh
100644 → 100755
Empty file.
Empty file modified Samples/DataExtractionTest/PHP/RunTest.sh
100644 → 100755
Empty file.
Empty file modified Samples/DataExtractionTest/RUBY/RunTest.sh
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions Samples/ElementBuilderTest/RUBY/ElementBuilderTest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,9 @@
cur_width = 0

while text_run < para_end do
text_run_end = para.index(' ', text_run)
text_run_end = para.index(' ', text_run.to_i)

if text_run_end == nil
if text_run_end.nil?
text_run_end = para_end - 1
end

Expand Down
Empty file modified Samples/ElementReaderTest/PHP/RunTest.sh
100644 → 100755
Empty file.
Empty file modified Samples/ElementReaderTest/RUBY/RunTest.sh
100644 → 100755
Empty file.
Empty file modified Samples/OCRTest/PHP/RunTest.sh
100644 → 100755
Empty file.
Empty file modified Samples/OCRTest/RUBY/RunTest.sh
100644 → 100755
Empty file.
Empty file modified Samples/OfficeToPDFTest/PHP/RunTest.sh
100644 → 100755
Empty file.
Empty file modified Samples/OfficeToPDFTest/RUBY/RunTest.sh
100644 → 100755
Empty file.
Empty file modified Samples/PDFUATest/PHP/RunTest.sh
100644 → 100755
Empty file.
Empty file modified Samples/PDFUATest/RUBY/RunTest.sh
100644 → 100755
Empty file.
Empty file modified Samples/UndoRedoTest/PHP/RunTest.sh
100644 → 100755
Empty file.
Empty file modified Samples/UndoRedoTest/RUBY/RunTest.sh
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion Samples/UnicodeWriteTest/RUBY/UnicodeWriteTest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def main()
# Embed and subset the font
font_program = $input_path + "ARIALUNI.TTF"
if not File.file?(font_program)
if ENV['OS'] == "Windows_NT"
if ENV['OS'] && ENV['OS'] == "Windows_NT"
font_program = "C:/Windows/Fonts/ARIALUNI.TTF"
puts "Note: Using ARIALUNI.TTF from C:/Windows/Fonts directory."
end
Expand Down