a426f1e2 by root

Changed something

1 parent bb6d7fbe
File mode changed
......@@ -29,7 +29,9 @@ class ApiController extends Controller
public function insert($json)
{
$json = '{"pdf":[{"name":"SISKINDS_test file","folder":"SISKINDS_test","pdfLocation":"https://www.polyu.edu.hk/iaee/files/pdf-sample.pdf"}],"changes":[{"label":"none","locationUp":"400","locationRight":90,"pages":"1","content":"LOGO_text_black.jpg","z-index":null,"idstylesPDF":1,"order":"2","style":null,"idchange_typePDF":2,"change_type":"2","fileLocation":"http://www.arielpremium.com/images/vsample_images/LOGO_text_black.jpg"},{"label":"text style","locationUp":"60","locationRight":290,"pages":"1","content":"519.660.2121 siskinds.com\/change","z-index":null,"idstylesPDF":2,"order":"1","style":"a:3:{s:11:\"font-family\";s:11:\"TradeGothic\";s:9:\"font-size\";s:2:\"14\";s:10:\"font-color\";s:14:\"cmyk 0 0 0.5 0\";}","idchange_typePDF":1,"change_type":"1"}]}';
$json = '{"pdf":[{"name":"SISKINDS_test file","folder":"SISKINDS_test","pdfLocation":"https://www.ets.org/Media/Tests/GRE/pdf/gre_research_validity_data.pdf"}],"changes":[{"label":"none","locationUp":"400","locationRight":90,"pages":"1","content":"LOGO_text_black.jpg","z-index":null,"idstylesPDF":1,"order":"2","style":null,"idchange_typePDF":2,"change_type":"2","fileLocation":"http://www.arielpremium.com/images/vsample_images/LOGO_text_black.jpg"},{"label":"text style","locationUp":"60","locationRight":290,"pages":"1","content":"519.660.2121 siskinds.com\/change","z-index":null,"idstylesPDF":2,"order":"1","style":"a:3:{s:11:\"font-family\";s:11:\"TradeGothic\";s:9:\"font-size\";s:2:\"14\";s:10:\"font-color\";s:14:\"cmyk 0 0 0.5 0\";}","idchange_typePDF":1,"change_type":"1"}]}';
$apiCallId = new pdfModel();
$apiCallId = $apiCallId->addApiCall('1',$json);
......
......@@ -34,7 +34,7 @@ class PdfController extends Controller
$outfile="";
$title = "Test Pages";
$storagePath = Storage::disk('local')->getDriver()->getAdapter()->getPathPrefix();
$outfile = $storagePath.$searchpath."/new_".$rows[0]->file;
// $outfile = $storagePath.$searchpath."/new_".$rows[0]->file;
try {
......@@ -154,13 +154,13 @@ try {
/// To turn on pdf screen out put uncomment below lines and remove the text in $output="" Var
//$buf = $p->get_buffer();
//$len = strlen($buf);
$buf = $p->get_buffer();
$len = strlen($buf);
//header("Content-type: application/pdf");
//header("Content-Length: $len");
//header("Content-Disposition: inline; filename=test_pages.pdf");
//print $buf;
header("Content-type: application/pdf");
header("Content-Length: $len");
header("Content-Disposition: inline; filename=test_pages.pdf");
print $buf;
......
......@@ -22,7 +22,7 @@ class pdfModel extends Model
->join('changesPDF', 'PDF_idPDF', '=', 'idPDF')
->join('stylesPDF', 'stylesPDF_idstylesPDF', '=', 'idstylesPDF')
->join('change_typePDF', 'idchange_typePDF', '=', 'change_typePDF_idchange_typePDF')
->where('pdf.idPDF','=', $id);
->where('PDF.idPDF','=', $id);
return $rows;
......@@ -31,7 +31,7 @@ class pdfModel extends Model
public function getList($id){
$rows = DB::table('PDF')->where('pdf.custId','=', $id);
$rows = DB::table('PDF')->where('PDF.custId','=', $id);
return $rows;
}
......
......@@ -11,7 +11,11 @@
"itbz/fpdf": "^1.7",
"barryvdh/laravel-snappy": "^0.3.0",
"vsmoraes/laravel-pdf": "^1.0",
"php-curl-class/php-curl-class": "^4.11"
"php-curl-class/php-curl-class": "^4.11",
"ext-PDO": "^7.0",
"ext-pdo_pgsql": "^7.0",
"slim/pdo": "^1.9",
"doctrine/dbal": "^2.5"
},
......
html>
<head>
<title>www.nginxsite.com</title>
</head>
<body>
<h1>Success! Nginx is properly serving on this domain!</h1>
</body>
</html>
<?php echo "hello world";
?>
......@@ -46,7 +46,6 @@ $app = require_once __DIR__.'/../bootstrap/app.php';
| and wonderful application we have prepared for them.
|
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
......