op.htmlToDoc.HtmlInput = true vs op.htmlToDoc.HtmlInput = false  SOLVED

PDF-XChange Editor SDK for Developers

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
zarkogajic
User
Posts: 1489
Joined: Thu Sep 05, 2019 12:35 pm

op.htmlToDoc.HtmlInput = true vs op.htmlToDoc.HtmlInput = false

Post by zarkogajic »

Hi Support,

I'm converting HTML to PDF and all ok so far ...

I've noticed non-expected differences when HtmlInput is html string vs html file.

In case of HtmlInput = false, and Input (array) has a string pointing to a file on file system ... all ok.

But, in case of HtmlInput = true, and Input has a string containing the html ... rendering looks slightly different (css embedded in html), but more importantly "<a href..>'s are NOT converted to URI links.

I guess the reason is related to how you create URI value and when HtmlInput= true, the path cannot be determined: viewtopic.php?t=46577

-žarko
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19885
Joined: Mon Jan 12, 2009 8:07 am

Re: op.htmlToDoc.HtmlInput = true vs op.htmlToDoc.HtmlInput = false

Post by Stefan - PDF-XChange »

Hello zarkogajic,

I've asked our devs to take a look here and assist! We will post further in this topic when I've heard back from them!

Kind regards,
Stefan
zarkogajic
User
Posts: 1489
Joined: Thu Sep 05, 2019 12:35 pm

Re: op.htmlToDoc.HtmlInput = true vs op.htmlToDoc.HtmlInput = false  SOLVED

Post by zarkogajic »

Hi,

I'll close the topic as "solved" because this probably has to do with: viewtopic.php?p=194160#p194160

-žarko
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 11109
Joined: Wed Jan 03, 2018 6:52 pm

op.htmlToDoc.HtmlInput = true vs op.htmlToDoc.HtmlInput = false

Post by Daniel - PDF-XChange »

:)
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com