I am facing this problem whereby I want to display pdf file on a view. The error I am currently meeting is
syntax error unexpected '?>'
Here's a bit of my code
<iframe src="{{URL::to(foldername/#../pathtofile)}} width='400' height='300' allowfullscreen="" webkitallowfullscreen=""></iframe >
You are missing a quote at the end of the src attribute and that's probably causing the error:
<iframe src="{{URL::to(foldername/#../pathtofile)}}" width='400' height='300' allowfullscreen="" webkitallowfullscreen=""></iframe >
Hope this helped you.
Related
I am getting the exact same error code as this question. I also read the answer to that post but not sure how it'll help in the context of this specific error.
NReco PDF generator works when I omit this line in this html file:
<tr>
<td valign="bottom"><div align="left" class="P ">- Other Receipts</div></td>
<td valign="bottom"><div align="center" class="P ">(36)</div></td>
<td valign="bottom"><div align="right" class="P ">83,00</div></td>
</tr>
If I do include that line I get the (exit code: -1073741819) exception. If I really want to include that line, then I must omit this line of code at the header of the same html file:
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
asp-fallback-href="~/lib/bootstrap/dist/css/bootstrap.min.css"
asp-fallback-test-class="sr-only" asp-fallback-test-property="position" asp-fallback-test-value="absolute" />
For me this is beyond irrational behavior. I dont see how styling or the content that I add in the html file will cause it to crash.
Can anyone assist me with this?
NReco.PdfGenerator is a .NET wrapper for wkhtmltopdf, and this kind of exception indicates that 'wkhtmltopdf.exe' process is crushed for unknown reason.
This means that you need to check what in wkhtmltopdf causes a crush -- you may do that in the command line, actually. Typical reasons:
CSS border-radius rules in some specific cases may cause a crush
if page margins are defined explicitly and it is not enough space for header or footer content this also may cause wkhtmltopdf crush
Unfortunately only way to find a workaround are experiments, however in most cases workaround is possible.
Laravel image showing problem.I can't find where the problem happens
Image is not showing.I have tired using asset function
<!----------End Navbar Part----------------->
{{-- start Sidebar+Conent --}}
<img src="{{asset('images/products/p.png')}}" alt="This is a image">
I expect the image will be shown
Looking at the screenshot you added, it seems that you have a space in your filename.
The filename looks like "p .png". Check if there is a space and if so, remove it from your image filename.
Loading image using variable containing base64 data in AngularJS
I am trying to find the right way to load a image source from a variable containing base64 encoded image data (for example pulled from a canvas using toDataURL(); ).
At first I just tried it like this:
<img src="{{image.dataURL}}" />
where the image is a scope variable with a variable dataURL containing the base64 data. This is actually working pretty well, the only problem is that I get a 404 error in my console. Something like this:
GET http://www.example.com/%7B%7Bimage.dataURL%7D%7D 404 (Not Found)
Not so pretty. When I tried a more angular style solution like this:
<img data-ng-src="image.dataURL" />
the images are not loading at all.
I made a fiddle which you can find HERE
Any suggestions how to get rid of this error in my console?
EDIT:
Gruff Bunny was right. This <img data-ng-src="{{image.dataURL}}" /> is working...
Working solution can be found HERE
The content of the ng-src needs to be interpolated: Try this:
<img data-ng-src="{{image.dataURL}}"/>
I admit I spent way too much time trying to fix similar problem,
my problem was I had extra brace here (see three braces at end):
ng-attr-src="{{aad.form.imageBase64Temp}}}"
I wanted to show an animated gif while the LinkedIn Member Profile Plugin is being loaded.
Here is the original code:
<script src="http://platform.linkedin.com/in.js" type="text/javascript"></script>
<script type="IN/MemberProfile" data-id="http://www.linkedin.com/in/reidhoffman"
data-format="inline"></script>
I found a similar question here but I'm not sure how I can apply that to the LinkedIn script.
Any solutions would be appreciated :)
I managed to figure something using related examples but the gif gets removed few seconds before the script is actually displayed.
I placed the linkedin plugin codes in linkedin.js and tried both below methods:
1:
$('#linkedin').html('<img src="ajax-loader.gif" />').load("linkedin.js");
2:
$('#linkedin').append('<img id="animation" src="ajax-loader.gif" />')
.load("linkedin.js")
.complete(function(data) { $('#animation').remove(); });
HTML
<div id="linkedin"></div>
I suppose the gif is removed once the script is loaded and yet to be executed? I also tried using getScript() couldn't get any results.
When I load certain html files with Html Agility Pack, I get that it will not close some tags (looking at InnerHtml and OuterHtml properties) when text within html tags has triangualr braces like this
<span class='title'> Launching app results in an error "Activation of http://<server name="">/TemplateBuilder/?language=1033&locale=1033 resulted in exception"</span>
so as output I get
<span class='title'> Launching app results in an error "Activation of http://<server name="">/TemplateBuilder/?language=1033&locale=1033 resulted in exception"
Is there anything that can be done to preserve it? Because is missing on output, the whole html is not displayed.
Thank you
This happens because your original html is too invalid. It should be:
<span class='title'> Launching app results in an error "Activation of http://<server name="">/TemplateBuilder/?language=1033&locale=1033 resulted in exception"</span>
This kind of malformed html cannot be detected by the Html Agility Pack.